What do you think is the βrightβ way to use Hibernate? To design an object level model (classes) and then generate DDL? To design a model at the relational level (tables) and then generate classes from it?
What are the advantages and disadvantages of each method?
In the case of creating DDL, you first generate classes from it, and then you can add some code to the classes, which happens if you want to add a new column to the table, for example, you need to change the class accordingly. Manually? Does Hibernate provide a tool to change a class without fully restoring the class (deleting user code)?
thanks
source share