I have been using 's SerialVersionUID Generator For NetBeans tool for a couple of years now. It used to be available for download from the NetBeans update site, but version 1.9.6 for NetBeans 6.9 has not been available. The current version for use with NetBeans 6.9 can be downloaded from here: eu-easyedu-netbeans-svuid-1.9.6.nbm
This fantastic plug-in is great for generating the serialVersionUID values as part of the Serializable interface contract. If you are doing work with Java Persistence API (JPA) you will definitely want this little plug-in to make your life easier.
- You will get a hint on the class about the missing serialVersionUID if you implement Serializable.
- Right-click on the class and pick from two options:
- Add default serialVersionUID
- Add generated serialVersionUID
No comments:
Post a Comment