Before generating code for Hibernate, you need to:
Install Hibernate 3.0 or higher.
Check the model.
Define generation options.
Checking the Model
When you complete the definition of the model, you need to run the Check Model function to verify if there are errors or warnings in the model. If there are errors, you need to fix them before generating code.
Generating Code for Hibernate
Once you have completed your model, checked it, and defined your generation options, you can generate the code for Hibernate.