You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Andrus Adamchik <an...@objectstyle.org> on 2013/07/18 15:50:03 UTC

Re: Serialization warnings

FYI - this is fixed in 3.2 for CayenneDataObject descendants (i.e. all but ROP classes) :

https://issues.apache.org/jira/browse/CAY-1851

On Jun 14, 2012, at 5:06 PM, Michael Gentry <mg...@masslight.net> wrote:

> Going back to https://issues.apache.org/jira/browse/CAY-1622 ...
> 
> 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.
> 
> Thoughts?
> 
> mrg
>