Hibernate / Hibernate interview questions II
What are the best practices for defining your Hibernate persistent classes?
The persistent class cannot be final.
You must have a default no-argument constructor for your persistent classes.
getXXX() (getters) and setXXX(mutator/setter) methods for all your persistable instance variables should be available.
You should implement the equals() and hashCode() methods based on your business key.
It is recommended to implement the Serializable interface.
More Related questions...