JPA persistence.xml share same jar file

Posted by user213855 on Stack Overflow See other posts from Stack Overflow or by user213855
Published on 2010-05-03T17:52:54Z Indexed on 2010/05/03 17:58 UTC
Read the original article Hit count: 420

Filed under:
|
|
|

Hi! I'm wondering if I can share the same jar file for several persistence units.. I mean: I have two persistence units described in my persistence.xml file and the entities are not in the same JAR. Entities are in a separated JAR file but, in that one, there are entites for both persistence units. I think I red somewhere that I coould use tag something like this: externalEntities.jar#com.mycompany.EntityA so I could separate them. I tried this solution and it doesn't work. Now I guess that it couldn't be done to package all entities (for two different persistence units) in the same JAR file.

What do yo think?

© Stack Overflow or respective owner

Related posts about jpa

Related posts about ejb3