This is an old thread, but I think serialVersionUID is still one of the hot topics.
When I started writing Java codes, it was too difficult to find and assign a unique value to the serlialVersionUID variable for me. After a while, a simple date format (yyyy-MM-ddTHH: mm: ss) gave me an idea: why don't I generate a value from the current date and time?
So, I started to generate (of course, manually) the values ββin accordance with the current date and time.
Suppose the current date and time is 01/09/2015 11:00. I would assign the value 201601091100L to serialVersionUID.
I hope this idea helps you further improve your projects.
kizanlik
source share