About mapping

forum_thread

10 classes limit

hey. i am a student. and we are learnning inheritance in JPA for my assiment i have 1 base class and 20 subclass in some kind of hierarchy (with all kind of mappings: SINGLE_TABLE, TABLE_PER_CLASS and JOINED). can i use the free version (it will count as 1 class?) or the 10 entity class limit won't allow it?   thank you, Liran. #1 2015-04-10 09:59 hey. i am a student. and we are learnning inheritance in JPA for my assiment i have 1 bas ...

 
forum_thread

JDO sequences from ORM file

I want to use sequences in JDO without using annotations. Normally this is done with a package-X.orm file, where X is a value passed to the PersistenceManagerFactory as the value of property "mapping". I'm encouraged to see that the JDO zip that comes with ObjectDB includes the DTD/XSD for this type of file, though I can't see a mention of it in the manual. ... to the PersistenceManagerFactory as the value of property "mapping". I'm encouraged to see that the JDO zip that comes with ObjectDB ...

 
forum_thread

Using a file extension other than .odb

I love that ObjectDB's implementation of Persistence.createEntityManagerFactory(...) treats a parameter ending in .odb as a file name rather than a persistence unit name.  It makes opening a DB in my app as easy as selecting it from a file chooser. However, I wish that I could use a file extension other than odb.  Since this functionality is already non-standard, why not allow it?  Perhaps any string beginning with "file://" could be treated this way. #1 2011-07-28 07:32 I love that ObjectDB's implementation of Persistence.createEntityManagerFactory(...) treats a parameter endin ...

 
forum_thread

@Entity saved in Tomcat session - problem

Hi, I have found a problem, when storing @Entity object in Tomcat session. When starting or stopping Tomcat, I get nasty exception - please check attached log. Strange thing is, that after this exception everything works perfectly fine. The problem appears after using Enhancer. The nasty solution is to create copy of @Entity class as normal POJO and use it to store in session. The problem is, that we need the same logic for temporary users (without storing in DB) and permanent users (stored in database). A separate POJO makes the whole logic quite complicated. #1 2010-12-13 14:42 Hi, I have found a problem, when storing @Entity object in Tomcat session. When starting or stopping ...

 
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)

 
api-jdo

Persistent.mappedBy

Name of the related member in the other class where this value is mapped (bidirectional relationship).(Annotation Element of javax.jdo.annotations.Persistent)

 
api-jdo

Constants.ORM_XSD_RESOURCE

The name of the resource for the XML schema of the standard JDO object-relational mapping metadata file.(Static Field of javax.jdo.Constants)

 
api-jpa

AttributeOverride.name

(Required) The name of the property whose mapping is being overridden if property-based access is being used, or the name of the field if field-based access is used.(Annotation Element of javax.persistence.AttributeOverride)

 
api-jpa

SqlResultSetMapping.columns

Specifies the result set mapping to scalar values.(Annotation Element of javax.persistence.SqlResultSetMapping)

 
forum_thread

Is ObjectDB the only object database that supports JPA?

Other Object database does'nt support JPA?   ... JPA is designed as an API for Object Relational Mapping (ORM), so many JPA features cannot be supported by regular object ...