About orm.xml

manual

JPA Persistence Unit

Explains how to define a JPA persistence unit in the persistence.xml file.... XML mapping files that are added to the default META-INF/orm.xml mapping file. Every annotation that is described in this manual can ...

 
forum_thread

How to package orm.xml when using EJB in WAR?

Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml file for example: ... in one project, the id's use sequences declared in an orm.xml file for example: < entity class = ... > and the persistence.xml references this orm.xml : < persistence - unit name = "OBJECT_DB_LOCAL_PU" ... - unit > both persistence.xml and orm.xml are located in src/main/resources/META-INF and Maven correctly copies ...

 
forum_thread

Is named-query supported in orm.xml

I prefer to keep custom JPQL named queries in an external file, e.g. orm.xml, rather than in the entity classes, for example: <named-query name= "DataValue.deleteByCapabilityAndCreationtime"> <query>delete from DataValue d where d.capabilityId = :capabilityId and d.creationtime &lt;= :creationtime </query> </named-query> This works fine with e.g. eclipseLink and postgres, but objectDB complains with an error like: ... keep custom JPQL named queries in an external file, e.g. orm.xml, rather than in the entity classes, for example: ...

 
manual

Storing JPA Entity Objects

Explains how to use JPA to store (persist) entity objects in the database.... to be located either in the default location, META-INF/orm.xml , or in another location that is specified explicitly in the ...

 
manual

JPA Lifecycle Events

Explains how to use JPA lifecycle events (client side triggers) with callback methods and listener classes.... to be located either in the default location, META-INF/orm.xml , or in another location that is specified explicitly in the ...