About Entity

101-110 of 200Refresh
Forum
10

Entity listener - event instead of object

Hi, Currently I'm playing with entity listener to implement auditing with difference between values in updated entity. There is a problem however with accessing "old" version of object stored in ... store separate entity for given event. Right now I'm using BaseEntity which contains
Forum
10

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many ... the increment of the version of entity E when entities are added to or removed from the collection ... If it is a bidirectional relationship that is owned by the entities in the collection (i.e. the collection
JPA Doc
10

JPA Exceptions

) . For example, if a transaction fails because of an attempt to store a new entity object with a primary key that is already in use by another existing entity object, the nested exception is: Other common ... to retrieve entity objects from the database. For example, when a required entity object is not found: or
Result
10

Posting to ObjectDB Website - Important Instructions

. Whenever possible: Use a single Java file with one main class + static inner classes for entity / embeddable ... ();     }     @Entity     public static class MyEntity {         private String name;         MyEntity(String ... its strict JPA warnings (There is no ID defined for this entity hierarchy, The class
Result
10

Eclipse Public License - v 1.0

entity that distributes the Program. "Licensed Patents" mean patent claims licensable by ... property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As
Manual
10

JPA / JDO Class Enhancer

(entity classes, embeddable classes and mapped superclasses), and is usually optional ... tracking of persistent field modifications, avoiding the need for snapshot comparison of entities (as ... of entity objects. With no enhancement, only persistent collection and map fields can be loaded lazily (by
Manual
10

JPA Query Structure (JPQL / Criteria)

classes and objects. For example, a JPQL query can retrieve and return entity objects ... elements such as names of entity classes and persistent fields, which are case sensitive. In ... over objects in the database. A query variable that is bound to an entity class is referred to as
Result
10

Posting to ObjectDB Website - Important Instructions [2018-08-06]

. Whenever possible: Use a single Java file with one main class + static inner classes for entity / embeddable ... ();     }     @Entity     public static class MyEntity {         private String name;         MyEntity(String ... its strict JPA warnings (There is no ID defined for this entity hierarchy, The class
Forum
10

Weird behaviour with enhanced classes and embedded entities

entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced/proxied list in my entity which contains embedded entities and some .add(obj) are simply failing ... .CascadeType; import javax.persistence.Embeddable; import javax.persistence.Entity; import javax
Forum
10

List of Enum Values in an entity

Entity with an ArrayList of Enums: private ArrayList flags; The flags are stored into ... wrong? Joachim Arrays of enum values are expected to be supported by ObjectDB. If the entity ... changed in the whole application: package .model.entity; import java.io.Serializable; import java