About reference

21-30 of 200Refresh
Forum
24

find out if an entity is refered by other entities

(reference field), so you may have to use many queries to cover all the possible relationships that may reference that child object. As a permanent solution, if you have to support many different
Issue
24

Explorer bug ? Objects seem to be missing from database in Class view, but are present as references

that every Element object (except Project itself) gets a Project reference on construction: INFO ... : javax.ejb.EJBException: Attempt to persist a reference to a non managed com.greensoft.entity.Block
Issue
23

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 be deleted. This only applies to the leaf nodes. If I add an additional the behaviour changes
Forum
23

Cascading merge() leading to "Attempt to persist a reference to a non managed instance" error

.UserException: Attempt to persist a reference to a non managed ObjectDbCascadingMergeTest$Parent
Forum
23

Does ObjectDB support @Parent for @Embeddable reference to parent?

also: http://stackoverflow.com/questions/5060891/jpa-how-can-an-embeddable-object-get-a-reference
Forum
23

removed objects stay with null field values in the reference

exist in the database anymore. But you may still have broken references to that object, like links to a web page that doesn't exist. hgzwicker
Issue
23

Deleting a broken reference that was fixed to null in the Explorer

Using version 2.7.4_01, we did a repair. After repair a former link to a missing reference was converted to null. This cannot be deleted using explorer   Thank you for this report. Build 2.7.4_02 fixes the issue. hgzwicker
Manual
23

Storing JPA Entity Objects

an Employee instance with a reference to an Address instance: Employee employee = new Employee ... instance. To avoid a dangling reference in the database, an IllegalStateException is thrown on commit if a persisted entity object has to be stored in the database in a transaction and it references
Manual
19

Detached Entity Objects

object. Cascading Detach Marking a reference field with CascadeType.DETACH (or CascadeType ... that references an instance of Address, which is another entity class. Due to the CascadeType.DETACH ... when applicable (e.g. to entity objects that the Address object references, if any). Bulk Detach
Manual
17

Deleting JPA Entity Objects

that modify the database require an active transaction. Cascading Remove Marking a reference field ... entity class contains an address field that references an instance of Address ... object references, if any). Orphan Removal JPA 2 supports an additional and more aggressive remove