While I was wondering why IDEA did not seem to have a generator for UIDs, I browsed the plugins and found serialver. I find it stupid enough to use and then I research more from the Code inspections.
Steps for enabling IDEA to generate serialVersionUIDs:
- Click the Code Inspection icon from the lower right portion of IDEA. The one displayed like detective.
- Click the Configure inspections link to see the Inspections dialog box.
- Find the Inspections -> Serialization issues -> Serializable class without ‘serialVersionUID’.
- Check it to enable it.
- Click OK to close the Inspections dialog box.
When editing a Serializable class without a serialVersionUID, it will display a warning and a Quickfix balloon to generate it.