HibernateDomainExporter provides now the functionality you requested :
File configuration = new File("examples.hbm.xml");
HibernateDomainExporter exporter = new HibernateDomainExporter(
"Q", // name prefix
new File("target/gen3"), // target folder
configuration); // instance of org.hibernate.cfg.Configuration
exporter.export();
This was actually easier. But the implementation still relies on reflection.
Refactored to work with Hibernate configuration :
HibernateDoma inExporter provides now the functionality you requested : hbm.xml" ); inExporter exporter = new HibernateDomain Exporter( gen3"), // target folder cfg.Configurati on
File configuration = new File("examples.
HibernateDoma
"Q", // name prefix
new File("target/
configuration); // instance of org.hibernate.
exporter. export( );
This was actually easier. But the implementation still relies on reflection.