JPA and ORM.XML not detected
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
play framework | Status tracked in 1.0 | |||||
1.0 |
Fix Released
|
Medium
|
Unassigned | |||
1.1 |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
My ORM file is contained in a separate jar file where all the business logic is stored. This package is imported as a library into my web project. Apparently it is not detected during startup as my named queries are not available.
In a persistence.xml file i have the property "mapping-file" to specify my ORM file.
I patched the JPAPlugin.java with the following code:
/** Support ORM file, rb 24.05.2010 */
String mappingFile = Play.configurat
if (mappingFile != null && mappingFile.
cfg.addResour
}
and add the following entry into "application.conf":
jpa.mapping-
then my orm.xml file will be detected by Hibernate.
Thanks, if I remember correctly orm.xml is the default name and you should not need it to specify it, correct? I will have a look at the JPA spec in any case.