Generating Code for Hibernate

Once you have completed your model, checked it, and defined your generation options, you can generate the code for Hibernate.

  1. Select Language > Generate Java Code.
  2. [optional] Click the Select tab to change the object selection.
  3. [optional] Click the Options tab to change the Hibernate and Java generation options.
  4. [optional] Click the Generated Files tab to review all the files that will be generated.
  5. Click OK.

You can use an IDE like Eclipse to modify the generated code, compile, run the unit test and develop your application.