ToolsPrevious: Debugging There are a multitude of different tools out there for generating Hibernate code: the list includes (but is not limited to) the Hibernate Tools In our experience, it's best not to get too hung up on tools. They can be useful for one-off code generation if you are dealing with a large schema and/or large tables. However, tools never quite generate what we actually want and thus the generated code requires modification. Round-trip generators have stringent requirements about how you modify the code and often it's just not worth the fuss. Furthermore, in our experience many tools will behave strangely if the database schema is at all unusual. For example, if you use the Hibernate Tools to generate a domain object for a table with no primary key, it will assume that the whole table is the primary key and generate a composite primary key accordingly. Finally, round-trip engineering is often more trouble than it's worth - if it works at all. Hibernate ToolsAll that said, tools can have their uses. One of the best things we've seen is the Hibernate Tools Next: Annotations |