cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <>
Subject Serialization warnings
Date Thu, 14 Jun 2012 14:06:55 GMT
Going back to ...

How about if Cayenne Modeler has an option for the following choices:

A) Generate @SuppressWarnings("serial") in the super/sub classes.

B) Generate a a calculated serialVersionUID in the superclass and
default the value in the subclass:

_Foo: protected static final long serialVersionUID = [calculated];
Foo: protected static final long serialVersionUID = _Foo.serialVersionUID;

This way the superclass will get a new value should the attributes
change and the default value for the subclass will be the same as the
superclass, but the developer can override this if they wish.



View raw message