I believe that you can do this, so it depends on preferences.
Personally, I write the part by hand. While Hibernate does a reasonable job of creating a database for you, it does not, as I can do myself. I would suggest that this applies to the Java classes that it produces, although I have never used this function.
As for the generated classes (if you sent the class generation route), I put that each field has a getter / setter, whether the fields should be read only or not (someone said that thread safety and variability), and that you can behavior because it is redefined if you regenerate classes.
source share