persist « Jar « JPA Q&A





1. Decouple a JPA entities jar from persistence.xml in SE environment    stackoverflow.com

Is there a way to reuse a jar with JPA annotated entities in more than one SE applications (as a dependency)? <jar-file> in persistence.xml is not supported in SE environments so ...

2. JPA 2.0, hibernate 3.5, jars & persistence.xml location    stackoverflow.com

I'm building a desktop application using hibernate 3.5 & JPA 2.0. I have 2 jars, the lib, which defines every entity and DAO, packages looks like this :

org.my.package.models
org.my.package.models.dao
org.my.package.models.utils
In org.my.package.utils I defined my ...

4. Does work in persistence.xml    forum.hibernate.org

I was having a hard time getting to work in persistence.xml, so wondering if it has been implemented. I did not see any test for it in Hibernate EntityManager. Basically I have a domain.jar which contains my annotated domain entities. I have two other jars - application.jar and test.jar, that try to access the entities in domain.jar. These two jars ...