About remove

1-10 of 200Refresh
JPA Doc
52

CascadeType.REMOVE

Enum Constant javax.persistence.CascadeType REMOVE Cascade remove operation Since: JPA 1.0
JPA Doc
52

remove(entity)

Method javax.persistence.EntityManager void remove(   Object entity ) Remove the entity instance. Parameters: entity - entity instance Throws: IllegalArgumentException - if the instance is not an entity or is a detached entity TransactionRequiredException - if invoked on a container-managed entity
Manual
44

Deleting JPA Entity Objects

Existing entity objects can be deleted from the database either explicitly by invoking the remove method or implicitly as a result of a cascade operation. Explicit Remove In order to delete an object ... transaction, it can be deleted using the remove method: Employee employee = em.find(Employee.class, 1
Issue
26

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
Issue
25

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

an exception in a use case in which we removed an entity. Exception in thread "main" java.lang ... 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 we made a small check. We created
Manual
22

DELETE Queries in JPA/JPQL

the entity objects into an EntityManager. Removing these objects from the EntityManager within an active transaction, either explicitly by calling the remove method or implicitly by a cascading operation ... entity objects from the database. Removing entity objects from the database using a DELETE query
Forum
19

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 ... 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. The difference between using one plugin or several plugins
Forum
19

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
Forum
19

Remove not working

] - 226 (removed in current transaction) at com.objectdb.o.JPE.g(JPE.java:94) at com.objectdb.o.ERR.f ... .TVS.g(TVS.java:105) at com.objectdb.o.TVS.g(TVS.java:93) at com.objectdb.jpa.EMImpl.remove(EMImpl ... {         Unit byName = unitDAO.findByName("6ff4b08a");         em.remove(byName);     } The unit
Forum
19

remove & persist in same transaction => Attempt to reuse an existing primary key value

(another table). On this point we get no conflicts. If we remove additional data for Entity (B) and then the special Entity (A) is empty, we remove the special Entity (A). If we add additional data for Entity ... transaction: first remove additional Data -> The special Entity (with id 1) is empty and we remove