Is there a relatively simple way to reverse engineer a database from the command line and generate Hibernate artifacts based on the database? the only info I've been able to find on doing this requires jumping through lots of hoops with Hibernate tools that weren't designed for command line use, and ant build files.
+1
A:
Are you trying to do this as part of build process? Don't. DB reverse engineering is designed to provide you with a base (template, what have you) to build your mappings on - not with production-ready set of mappings to work with.
It's precisely for that reason that reverse schema engineering tool is not exposed as Ant task.
If you would rather avoid eclipse and use the command line to reverse engineer a database as a starting point see this link
ChssPly76
2009-09-04 18:05:45
I don't intend on doing this as part of a build task. I would rather /use the command line then an IDE though.
Jared
2009-09-04 18:10:38
Fair enough. Take a look at this then: http://www.factorypattern.com/howto-generate-hibernate-pojo-and-mapping-files-using-ant-from-a-db-schema/
ChssPly76
2009-09-04 18:37:07