About persist

api-jpa

javax.persistence.Transient

Specifies that the property or field is not persistent.(Annotation of JPA)

 
issue

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 remove of an entry from a @OneToMany collection is not possible. The following java code demonstrates the problem. The statement parentEntity.getChildEntityContainer().remove("01"); does not work with not enhanced JPA entities. ... ) . begin ( ) ; entityManager. persist ( parentEntity ) ; entityManager. getTransaction ... = new MyEntity ( ) ; em. persist ( e ) ; em. getTransaction ( ) ...

 
forum_thread

Extra uninitialised entities spawned on merge()

In the following, Element is a base entity class, with a bi-directional @ManyToOne-@OneToMany relationship Element owner - List<Element> ownedElements, and Example is a subclass entity with a relationship @OneToOne Element child. ... {   final static boolean DO_PERSIST_BEFORE_MERGE = true ;   /** * @param args ... ( null , "root" ) ; em. persist ( root ) ; em. getTransaction ( ...

 
forum_thread

Entity Management Config questions

Hi, the manual states the following regarding config of Entities: http://www.objectdb.com/java/jpa/setting/entities  : <cache ref="weak" level2="0mb" /> The <cache> element specifies settings of the two cache mechanisms for entities: #1 2010-12-20 07:36 Hi, the manual states the following regarding config of Entities: http://www.objectdb.com/java/jpa/setting/ent ...

 
api-jpa

getPersistenceType()

Return the persistence type.(Method of javax.persistence.metamodel.Type)

 
api-jpa

javax.persistence.PersistenceUnitUtil

Utility interface between the application and the persistence provider managing the persistence unit.(Interface of JPA)

 
api-jdo

javax.jdo.spi.StateInterrogation

This interface is implemented by a non-binary-compatible JDO implementation to provide state interrogation for non-enhanced persistent classes.(Interface of JDO)

 
forum_thread

Using Enum type in NamedQuery: Field is not found in type

I'm trying to switch an application that worked fine in Hibernate to ObjectDB and am having issues with queries that reference enum types. On my entity object is a static enum public static enum Type {     A,B,C } that is stored in an @Enumerated member variable private Type type; @Enumerated public Type getType() {     return type; } I then try to query this field in the following JPA Named Query #1 2013-01-17 22:17 I'm trying to switch an application that worked fine in Hibernate to ObjectDB and am having issues with queri ...

 
api-jdo

javax.jdo.spi.StateManager

This interface is the point of contact between managed instances of PersistenceCapable classes and the JDO implementation.(Interface of JDO)

 
api-jpa

javax.persistence.Embedded

Specifies a persistent field or property of an entity whose value is an instance of an embeddable class.(Annotation of JPA)