Home » Search

About removed

21-30 of 200Refresh
Issue
21

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 ... ();   entityManager.remove(parentEntity.getChildEntityContainer().get("01"));   parentEntity
Forum
21

Removing an entity throws exception

to remove customer entity, when it's read by a query (it's attached), it throws this exception ... more   After this exception is the entity detached (why?). When I merge it, I can remove it without problems ... are empty. The query: em.createQuery("select c from Customer c").getResultList(); Code for removing
Forum
20

can removing an entity throw an exception if the entity is in use?

me to remove an instance of A, even if a managed B has some reference to that A. When I then find ... to prevent the removal of the A, if it is referenced by any other object in the database? (ie. EntityManager.remove() should throw an exception.) Thanks, Carl       It is the application responsibility
Issue
20

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 ... 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 question was moved to the forum for further discussion. btc_es
Forum
20

Removing an element from an @OneToMany doesn't work

@ManyToOne private Parent parent; Somewhere I do this: parent.getChildren().remove(0 ... .commit(); But the element isn't removed. Should I remove the children entity too? It works using
Forum
20

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 the Database ... SuperClass to RenamedSuperClass and Remove the ChildClassB.
Issue
20

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 Thank you for this report. Please try build 2.7.2_09. doppelrittberger
Forum
20

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 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. pnewman
Forum
20

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

); entityManager.getTransaction().begin(); entityManager.remove(conclusion); entityManager ... .PERSIST, CascadeType.REMOVE}) @Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN
Issue
20

NULL reference, how to remove

we have in our db these objects, how can we remove them (we did already a -cp Doctor):     More information is needed about this NULL reference. Can we have access to the database? What happens ... then you can use List's remove method. See also this question on stackoverflow.   hgzwicker