| Re: [eclipselink-users] Create persistence unit programmically without persistence.xml |
I suppose that is the main reason you need a persistence.xml, to define the set of classes/classpath. I don't think it is possible to deploy JPA without a persistence.xml. You could log an enhancement to allow passing the class list, or orm.xml file with the persistence properties Map, but you would still need to access the EclipseLink provider directly as JPA Persistence requires a persistence.xml to know the provider.
philk wrote:Hello,
I want to create a persistence unit with out using the persistence.xml. I am already feeding EL all the "eclipselink" properties for the database connection and the class loader. The last thing I struggle to find is, how to feed EL the entity classes that the PU should be aware of. How would I do that?
Thanks, Phil