public void Execute2() throws IOException {
// via APT
process(HibernateAnnotationProcessor.class, CLASSES, "HibernateAnnotationProcessor");
// via GenericExporter
GenericExporter exporter = new GenericExporter();
exporter.setKeywords(Keywords.JPA);
exporter.setEntityAnnotation(Entity.class);
exporter.setEmbeddableAnnotation(Embeddable.class);
exporter.setEmbeddedAnnotation(Embedded.class);
exporter.setSupertypeAnnotation(MappedSuperclass.class);
exporter.setSkipAnnotation(Transient.class);
exporter.setTargetFolder(new File("target/GenericExporterTest2"));
exporter.addStopClass(ForwardingSet.class);
exporter.setStrictMode(true);
exporter.export(AbstractEntityTest.class.getPackage());
List<String> expected = new ArrayList<String>();
// GenericExporter doesn't include field/method selection
expected.add("QFileAttachment.java");
expected.add("QJodaTest_BaseEntity.java");