Serializable, you should take the time to generate a unique
serialVersionUIDfor the class. By default, the IDE will add a
serialVersionUIDwhich is defined as 1L.This is a rather poor substitute for doing it correctly. The
serialVersionUIDis extremely important in Web Development (Session scoped beans must be
Serializable), and in Java Persistence API (JPA) which needs to be able to serialize entities.
I have covered this plugin in a previous blog post, but there is an updated NetBeans plugin to help you with serialization. The Kenai project is located here: serialVersionUID generator for Netbeans. The actual downloadable nbm for NetBeans 7.0 is located here: eu-easyedu-netbeans-svuid.nbm. It was the first plugin I looked for when I installed NetBeans 7.0.