I always let openejb scans for entities setting the right property: https://rmannibucau.wordpress.com/2012/11/15/jpa-entities-scanning-in-tomee/
Sounds like a smooth solution Le 21 déc. 2015 13:15, "hwaastad" <[email protected]> a écrit : > Hi, > I have an entity jar (persistence.xml in another ejb module) and I'm > running > a couple of tests in the ejb module. > > The entity jar is quite big and I have to add a lot of classes to my > @Module > PersistenceUnit.... > > Is there a better way of getting the pu configured? > I can always iterate over package...but maybe functionality already > exists..... > > br hw > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/entity-jar-and-applicationcomposer-tp4677276.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
