I have written a unit test to call MappingTool to validate the annotated
classes against the database.
public void testSchemaVerification() throws Exception{ Options
opts = new Options(); opts.put("action", "validate");
MappingTool.run(new JDBCConfigurationImpl(), jpaClasses, opts); }
The problem though, is I currently have the list of classes to check hard
coded (jpaClasses is a String array of hard coded classes). Is there a way
to get a list of enhanced classes from the Entity manager? Or somewhere
else?
The alternative would be to parse the persistence.xml file, but I was hoping
for an easier method that already existed as part of the Entity Manager.
Surely is has a list of the enhanced classes somewhere in it?!?!
Thanks.