Hi, The entities found in orm.xml do not need to be listed in persistence.xml, OpenJPA will automatically consider them part of the persistence unit.
If you have other entities, defined via annotations and want to include them in your persistence unit you'll need to list them in the <class> tags, and they'll be merged with the ones found in orm.xml. Hope this helps, -mike On Sun, Nov 21, 2010 at 5:46 AM, carmelk <[email protected]> wrote: > > Hi, > > I have used the ReverseMappingTool to create a bunch of entity beans from a > given DB. > I would like now to operate on them (e.g., read, update). > Since this classes were generated automatically, is seems awkward to list > them in > persistence.xml under '<class>', doesn't it? > Does someone know of any elegant way to make openJPA familiar with classes > created by the > ReverseMappingTool ? maybe the generated orm.xml can somehow help? > > Many thanks in advance, > Carmel. > -- > View this message in context: > http://openjpa.208410.n2.nabble.com/Using-entity-beans-created-by-the-ReverseMappingTool-tp5759987p5759987.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >
