Hello,
this is not really a hibernate-specific question, but rather about the interpretation of the JPA spec.
If I read correctly, the spec mandates for JavaSE applications to specify the entity classes to be included in the persistence unit using the class element inside persistence.xml.
Now, with the class element, which holds the fully qualified class name only, I see no way to specify an XML mapping file, also. This yields 2 questions:
- is there a way to portably specify XML mappings in a JavaSE environment?
- if there is none, does Hibernate provide one? Perhaps the old mechanism of loading colocated mapping files named after the classes?
thanks,
Christian
|