Do Hibernate table classes need to be Serializable?
- by Scott Leis
I have inherited a Websphere Portal project that uses Hibernate 3.0 to connect to a SQL Server database.
There are about 130 Hibernate table classes in this project. They all implement Serializable. None of them declare a serialVersionUID field, so the Eclipse IDE shows a warning for all of these classes.
Is there any actual need for these classes to implement Serializable?
If so, is there any tool to add a generated serialVersionUID field to a large number of classes at once (just to make the warnings go away) ?