Generating Java files¶
Through its coupling with the Java Designer module, the Hibernate Designer module provides you with the possibility of generating Java classes corresponding to the data model.
Creating Getters and Setters¶
The “Create Accessors” command is used to automatically add the get and set operations to each defined attribute in the class model.
- Create Accessors:
This command is available on an Entity
Creates getters and setters
Hibernate and Java generation¶
The “Java and Hibernate generation” command is used to generate Hibernate mapping files and Java files from the same persistent class model. This command creates missing accessors, checks the model, generates Hibernate mapping files and generates Java classes.
- Java & Hibernate generation:
This command is available on an Element of the Persistence profile
Creates missing accessors, checks the model, generates Hibernate mapping files and generates Java classes.