Do Hibernate table classes need to be Serializable?

Posted by Scott Leis on Stack Overflow See other posts from Stack Overflow or by Scott Leis
Published on 2010-04-28T01:31:03Z Indexed on 2010/04/28 1:33 UTC
Read the original article Hit count: 257

Filed under:
|
|

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) ?

© Stack Overflow or respective owner

Related posts about java

Related posts about hibernate