System.out.println(jpaClassGenerator.generatePersistenceXmlEntry(model));
}
public static void testJPAResourceClassGen() {
SQLData data = createSQLData();
JPAClassGenerator jpaClassGenerator = new JPAClassGenerator();
JPAClassModel model = jpaClassGenerator.createJPAClassModel(data);
JPAResourceClassGenerator jpaResourceClassGenerator = new JPAResourceClassGenerator();
jpaResourceClassGenerator.setExceptionClassName("AppCatalogException");
jpaResourceClassGenerator.setJpaUtilsClassName("AppCatalogJPAUtils");
jpaResourceClassGenerator.setResourceTypeClassName("AppCatalogResourceType");
jpaResourceClassGenerator.setQueryGeneratorClassName("AppCatalogQueryGenerator");