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 to open the Generation dialog.
  2. Enter a directory in which to generate the files, and specify whether you want to perform a model check (see Checking an OOM).
  3. [optional] Click the Select tab to change the object selection.
  4. [optional] Click the Options tab to change the Hibernate and Java generation options.
  5. [optional] Click the Generated Files tab to review all the files that will be generated.
  6. Click OK to begin generation.

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