Hibernate does not require objects to be Serializable .
"If an object instance is passed by value as a separate object, for example, through a remote bean session business interface, the class must implement the Serializable interface." (WITH)
This statement is a common source of confusion because it has nothing to do with Hibernate. In fact, this means that if you plan to use your objects in contexts where serializability is required, they must be Serializable .
Since Spring MVC does not require model attributes to be Serializable (unless you want to use session persistence for attributes stored in the session using @SessionAttributes ), so you don't have to worry about serialization in your case.
source share