Comment 7 for bug 656847

Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Refactored to work with Hibernate configuration :

  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.