ObjectDB Database Search

1-50 of 200 results

jakarta.persistence.CascadeType.REMOVE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.CascadeType REMOVE Cascade the remove operation Since: Jakarta Persistence (JPA) 1.0

Deleting JPA Entities

You can delete existing entities from the database either explicitly by calling the remove method or implicitly as a result of a cascade operation. Explicit remove To delete an entity from the database, you must first retrieve it. Then, within an active transaction, call the remove method

Remove an entity which attributes were changed - OptimisticLockException

and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes ... lock exception of the removed entity. If this operations on the entity are executed in only one plugin ... will be removed , if we use three OSGi plugins. btc_es BTC EmbeddedSystems The difference between using

Is it possible to remove parent/child entities without refresh?

We have a big entity object tree in our project. If I use the entityManager. remove (childEntity) method to remove a child entity a entityManager.refresh(parentEntity) is necessary in order ... . Do you know a way to remove a child entity from a parent entity without a entityManager.refresh

Removing objects where ManyToMany relationships exist

are removed from the database. What happens with the numerous TreeSets for all the existing Entities in the database? Are OtherEntities that are referenced in a TreeSet automatically removed as ... where an entry points to an to-be- removed OtherEntity, to remove it from the Set manually? Hope not

Entity not removed 100%

When I remove an object from a class it get's removed but the other objects that had that object ... .ALL) This is what it remains when I check the removed object from another object's attributes     Unknown unknown It is the application responsibility to clear references to removed objects. Cascading removal

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity ... ;OSGi test case to the minimum that can still show the unexpected behaviour (i.e. remove unnecessary ... the object. Flushing changes to the database (by running a query in FlushModeType.AUTO ?) Removing

Record is not clearing properly on remove

;but when i delete Agent ,it is removed from db but in AgentGroup it is not removed properly. Agent ... ; Thanks Manoj Manoj Kumar Maharana You have to remove it from the collection and then delete ... the removed object after it is removed from the database (a refresh may be needed). support Support

removed objects stay with null field values in the reference

; ... @OneToMany(fetch=FetchType.LAZY) public Set workflow = new HashSet (); When we remove an object ... . remove   hgzwicker Hans-Georg Zwicker You have to  remove the object from the set  ... the set from the database, even if the object is not removed from the set explicitly. support Support

Attempt to remove a detached entity object (error 613)

wanted to merge it ... Unfortunatly, i get this error : Failed to commit transaction: Attempt to remove ... to remove the object ... ? In my opinion, one child ( a list ) with OneToMany and orphanRemoval has been modified ( one element removed ). And objectdb maybe tries to remove the object ... But i

Removing an entity throws exception

able to remove customer entity, when it's read by a query (it's attached), it throws this exception ... is the entity detached (why?). When I merge it, I can remove it without problems... The Customer class ... ").getResultList(); Code for removing :     em.getTransaction().begin();    

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open ... to RenamedSuperClass and Remove the ChildClassB.   @Entity @Access(AccessType.FIELD) public ... a super class and removing one of its subclasses at the same time. This report was moved to the issue

Removing entity class

into 10 entities limit. My question is: Is it possible to remove entity/table completely from ... Milan mimac Milan Fabian Unfortunately removing a class is currently unsupported

How to Remove records from many to many relationship tables in JPA

= entityManager.find(Conclusion.class, id); entityManager.getTransaction().begin(); entityManager. remove ... = {CascadeType.PERSIST, CascadeType. REMOVE }) @Cascade(org.hibernate.annotations.CascadeType.DELETE

The exception "Attempt to remove a detached entity object" have no information about the entity

Hello, the exception "Attempt to remove a detached entity object" have no information about the detached entity. It is very hard, especially if the involved entities uses cascading, to find the removed call for the detached entity.   It would be very helpful if you can add a few information

How do I Remove an entity from the Database ?

Hi I no longer want to use an Entity .. (in SQL terms the whole Table ) ... How do I delete it ?   Thanks Paul Newman pnewman Paul Newman Currently classes cannot be removed but this only affects the list of classes in the Explorer. Removing of classes will be supported in the future. support Support

orphanRemoval = true not working when CascadeType.REMOVE is disabled

addresses; I'm expecting, that removing Employee from db, addresses has been too, but I ... = CascadeType. REMOVE ) Address entities used Employee (id=1) deleted, but Address (name_2) using

DELETE Queries in JPA/JPQL

: Retrieve the entities into an EntityManager . Remove these objects from the EntityManager within an active transaction, either explicitly by calling the remove method or implicitly through a cascading ... , DELETE queries remove specified entities from the database. Using a DELETE query to remove entities

Strings in JPQL and Criteria Queries

' . LOWER('Germany') is evaluated to 'germany' . TRIM - removing leading and trailing characters The TRIM([[LEADING|TRAILING|BOTH] [char] FROM] str) function returns a string after removing leading ... ' . TRIM(BOTH FROM ' UK ') is evaluated to 'UK' . By default, spaces are removed , but you can specify

JPA Lifecycle Events

is marked for removal (when remove () is called). @PostRemove : Invoked after an entity is deleted from

Database Schema Evolution

Modifications to entity classes that do not change their persistent field definitions (their schema) are transparent to ObjectDB. This includes adding, removing , or modifying constructors, methods ... almost insensitive to class hierarchy changes, such as moving fields between class levels or removing

jakarta.persistence.EntityManager

identity that is not (or no longer) associated with any active persistence context. A removed ... , that is scheduled for removal from the database upon transaction commit. The EntityManager API is used ... of individual entity instances. The client may persist and remove instances, find entities by

Database Management Settings

parameter . The elements To remove the ObjectDB evaluation restrictions (a limit of 10 entity classes

Detached JPA Entities

an IllegalArgumentException if the argument is not an entity instance or if it is a removed entity. It throws

Retrieving JPA Entities

an IllegalArgumentException if the argument is not a managed entity, including entities in the New, Removed , or Detached state

Privacy Policy

to remove that information from Our servers. If We need to rely on consent as a legal basis

Obtaining a JPA Database Connection

, you can invoke EntityManager methods that modify the database content, such as persist and remove

CRUD Database Operations with JPA

; i = 100) { em. remove (p); // delete entity } else { p.setX(p.getX() + 100); // update entity

Eclipse Public License - v 1.0

of this Agreement must be included with each copy of the Program. Contributors may not remove or alter any

Removing of an entity removes also another entity type

. All ResolverMapping entities are removed by a query (DELETE FROM ...), afterwards ResolverMapping entities ... with a result and after that a ToleranceDefinition entity is removed from database by entitymanager. remove (obj). Directly after remove we try to retrieve again the ResolverMapping entities from

Schema-Update: Deactivation of automatic entity class removing and introduction of a new class remove in the schema config

EmbeddedSystems Hello, we got now an exception in a use case in which we removed an entity. Exception in ... that we can access the persisted objects of the ' removed ' entity. And now we are a little bit confused, because we thought that the instances are removed if we remove the entity class. In the past

jakarta.persistence.criteria.CriteriaQuery

removed . This method only overrides the return type of the corresponding AbstractQuery method. Overrides ... expressions are simply removed . This method only overrides the return type of the corresponding ... ), if any. If no restrictions are specified, any previously added restrictions are simply removed

jakarta.persistence.criteria.Subquery

expressions are specified, any previously added grouping expressions are simply removed . This method ... removed . This method only overrides the return type of the corresponding AbstractQuery method. Overrides ... . If no restrictions are specified, any previously added restrictions are simply removed . This method only overrides

jakarta.persistence.criteria.AbstractQuery

. If no grouping expressions are specified, any previously added grouping expressions are simply removed ... removed . Parameters: grouping - list of zero or more grouping expressions Returns: the modified query ... added restrictions are simply removed . Parameters: restrictions - zero or more restriction

Calling List.removeIf makes object dirty even if nothing is removed

at all, even if it doesn't lead to the removal of any items from the list, still marks the object as ... causes a removal of any items, it significantly slows down the commit. We have to work ... . removeIf is currently processed by the Enhancer in the same way as  remove

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

Hello! When the JPA entities are not enhanced the removal of an entry from a @OneToMany collection ... .getChildEntityContainer(). remove ("01"); does not work correctly with not enhanced JPA entities. package ... ();   entityManager. remove (parentEntity.getChildEntityContainer().get("01"));   parentEntity

Remove an entity which attributes were changed

and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes ... lock exception of the removed entity.   If this operations on the entity are executed in ... although the entity will be removed , if we use three OSGi plugins. btc_es BTC EmbeddedSystems The question

Cascade.ALL with LAZY fetchtype does not clean up all references on remove

Hello, I have a tree of entity classes that reference others using Cascade.ALL in combination with FetchType.LAZY. If I now delete a root entity using EntityManager. remove all leaf nodes will not ... the database. If you remove the FetchType everything works. Best regards Markus doppelrittberger

NULL reference, how to remove

we have in our db these objects, how can we remove them (we did already a -cp Doctor):     hgzwicker Hans-Georg Zwicker More information is needed about this NULL reference ... reference? If they are ordinary null values in the ArrayList then you can use List 's remove method. See also this question on stackoverflow.   support Support

Removed entities can be found by query in the same transaction

Hello, we opened a transaction, load an entity from database and removed this entity by em. remove (). Afterwards the entity can be load again by query although the resulted entity have an attribute __odbtracker/m (type STA, value=Persistent-Deleted-Flushed) which shows that the entity is deleted

Allow removal of entity class from ObjectDB & Explorer

to its data structure. When an entity class becomes unnecessary, we should be able to remove

Persist & remove in same transaction

Remove the entity object, EntityManager is flushed & cleared, Transaction is not committed Count

jakarta.persistence.Graph

(JPA) 3.2 void removeAttributeNode ( String attributeName ) Remove an attribute node from the entity ... Persistence (JPA) 3.2 void removeAttributeNode ( Attribute attribute ) Remove an attribute node from ... void removeAttributeNodes ( PersistentAttributeType nodeTypes ) Remove all attribute nodes

jakarta.persistence.EntityGraph

) Remove an attribute node from the entity graph. When this graph is interpreted as a load graph ... removeAttributeNode ( Attribute attribute ) Remove an attribute node from the entity graph ... (JPA) 3.2 void removeAttributeNodes ( PersistentAttributeType nodeTypes ) Remove all attribute nodes

jakarta.persistence.CascadeType

=ALL is equivalent to cascade={PERSIST, MERGE, REMOVE , REFRESH, DETACH} . See Also: ManyToOne.cascade ... Cascade the refresh operation Since: Jakarta Persistence (JPA) 1.0 REMOVE Cascade the remove operation

jakarta.persistence.Cache

. Since: Jakarta Persistence (JPA) 1.0 void evict ( Class cls , Object primaryKey ) Remove the data ... Since: Jakarta Persistence (JPA) 1.0 void evict ( Class cls ) Remove the data for entities of the specified class

jakarta.persistence.OneToMany.orphanRemoval

Jakarta Persistence (JPA) Method in jakarta.persistence.OneToMany boolean orphanRemoval (Optional) Whether to apply the remove operation to entities that have been removed from the relationship and to cascade the remove operation to those entities. Default: false Since: Jakarta Persistence (JPA) 2.0

[ODB1] Chapter 6 - Persistent Objects

.unbind( ... ) method removes an object name: import com.objectdb.Utilities; : : pm.currentTransaction().begin(); Utilities.unbind(pm, "me"); pm.currentTransaction().commit(); Removing a name also requires an active transaction. When the transaction is committed, the name is removed from the database

[ODB1] Chapter 8 - ObjectDB Server

eliminates the inherited address restriction. The minus value in the delete attribute removes

[ODB1] Chapter 3 - Persistent Classes

, removing and changing constructors, methods and non persistent fields. Changes to persistent fields