Introduction
This tool uses hibernate-tools to generate JPA entity classes and schema exports. My IDE was not supporting Entity generation and I needed a small tool to generate entities. Resultant tool is 9MB size and capable of both generating entity classes from database connection and generating sql schema from entity classes.
Application
Schema Exporter uses org.hibernate.tool.hbm2ddl.SchemaExport to create table DDL definitions and executes them in provided db connection by reading JPA entity classes.
Pojo exporter uses org.hibernate.tool.hbm2x.POJOExporter to connect a jdbc connection and generate entity classes using reverse engineering. Hibernate.reveng.xml file can be provided to limit tables to generate pojo files.
For more information about hibernate tools see http://docs.jboss.org/tools/latest/en/hibernatetools/html/ant.html
Conclusion
Project files and application binaries can be downloaded from sourceforge site.
Project files download.
Application files download.
Comments
Post a Comment