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 2011/10/04 11:57:49 UTC
Re: Cayenne-generated classes need @SuppressWarnings("serial")
On Oct 4, 2011, at 12:48 PM, Durchholz, Joachim wrote:
> In that case, it may help to declare the generated classes abstract. Abstract classes cannot be deserialized, so the compiler should not complain.
Oh and BTW, generated classes are abstract (at least in 3.1), and the compiler still complains - separately about superclass and subclass. So there's more work to do for us to figure out how to handle this correctly.
Andrus
RE: Cayenne-generated classes need @SuppressWarnings("serial")
Posted by "Durchholz, Joachim" <Jo...@hennig-fahrzeugteile.de>.
>> In that case, it may help to declare the generated classes abstract. Abstract classes cannot be deserialized, so the compiler should not complain.
>
> Oh and BTW, generated classes are abstract (at least in 3.1), and the compiler still complains - separately about superclass and subclass. So there's more work to do for us to figure out how to handle this correctly.
Oh dear. That's just nonsensical.
Ah well. It might be useful to have a SerialVersionUID in the superclass anyway; I just registered on the dev list, once the registration process is complete I'll elaborate there.
Regards,
Jo