About example

api-jpa

javax.persistence.MapKeyClass

Specifies the type of the map key for associations of type java.util.Map.(Annotation of JPA)

 
forum_thread

Example database world.odb

Hello! Where can I find classes for example database world.odb? Thanks for the answer.   ... Hello! Where can I find classes for example database world.odb? Thanks for the answer.   ... OneToMany and ManyToMany? I want to see a working example :-) edit ...

 
forum_thread

Guestbook example from tutorial does not work.

Hi, I have Problems to initialize objectdb in a jee envoirment. I used the Guestbook from the tutorial and try to deploy on Tomcat but i get this error. Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Creating application failed: /objectdb-2.6.2/tutorials/guestbook-jee6/target/Guestbook: org.apache.openejb.OpenEJBRuntimeException: java.lang.ClassNotFoundException: com.objectdb.jpa.Provider: java.lang.ClassNotFoundException: com.objectdb.jpa.Provider ... Thank you for your quick reply. But thats a maven example. If i place the object-jee.jar to th /Web-inf/lib ...

 
forum_thread

Your Glassfish example on the web

Hi, I'm doing a school project with objectdb and glassfish. I have tried your web tutorial "Java EE JPA (Glassfish) with Netbeans". When I try to run the example and add an entry in the guestbook, it throws this exception: com.objectdb.o._PersistenceException: Attempt to obtain a connection from a closed EntityManagerFactory   I have tried Open source and Oracle Glassfish server with the same result. I'm using 64-bit jdk1.7.0_03   ... (Glassfish) with Netbeans". When I try to run the example and add an entry in the guestbook, it throws this exception: ...

 
forum_thread

Issue deploying J6EE/Eclipse/Glassfish example to TomEE 1.5.1

In order to get past TomEE ignoring objectdb.jar, I tried using the objectdb-jee.jar.  It seems to be hardcoded to assume it is being deployed into JBoss AS: ....snip.... #1 2012-12-10 22:31 In order to get past TomEE ignoring objectdb.jar, I tried using the objectdb-jee.jar.  It seems to be hardco ...

 
forum_thread

Groovy JPA example

I've been using Groovy with ObjectDb, just thought I'd post a short snippet to show how easy this is to do. The following script (which is one import and one statement) will open a database, run a query and print some results. --------------------------------------------------------------- import javax.persistence.Persistence #1 2011-10-10 05:21 I've been using Groovy with ObjectDb, just thought I'd post a short snippet to show how easy this is to d ...

 
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. ... Element owner - List<Element> ownedElements , and Example is a subclass entity with a relationship @OneToOne Element child . ... ; //now detached, since outside transaction Example e = new Example ( root, "example" ) ; ...

 
api-jpa

javax.persistence.Column

Is used to specify the mapped column for a persistent property or field.(Annotation of JPA)

 
api-jpa

javax.persistence.OrderBy

Specifies the ordering of the elements of a collection valued association or element collection at the point when the association or collection is retrieved.(Annotation of JPA)

 
api-jpa

javax.persistence.Embeddable

Defines a class whose instances are stored as an intrinsic part of an owning entity and share the identity of the entity.(Annotation of JPA)