If you read this article: http://io.typepad.com/eben_hewitt_on_java/2005/10/explicitly_set_.html,
you will learn how important defining serialVersionUID is. Next question is how you define that value. This is simple. You start the value from 1L, for example. As you update properties of the serializable class, you add one like 2L. With this way, you will never ever have a problem with Java serialization. If you add comment for each update, it’s even better.
この記事http://io.typepad.com/eben_hewitt_on_java/2005/10/explicitly_set_.html,
を読んだら、SerialVersionUIDを定義することが以下に大事か分かります。次の質問は、どんな値を定義すれば良いか?これは、簡単。例えば、1Lからはじめて、そのSerializableクラスのプロパティを更新するごとに、一つごと加えていけば良い。と、次は2Lとなる。このようにすれば、Serializationの問題はきっと起こらない。更新ごとに、コメントをつけたらなおさら良い。
