Return-Path: X-Original-To: apmail-cayenne-dev-archive@www.apache.org Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA1F810D73 for ; Thu, 18 Jul 2013 13:50:36 +0000 (UTC) Received: (qmail 98172 invoked by uid 500); 18 Jul 2013 13:50:36 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 98050 invoked by uid 500); 18 Jul 2013 13:50:35 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 98042 invoked by uid 99); 18 Jul 2013 13:50:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jul 2013 13:50:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 18 Jul 2013 13:50:27 +0000 Received: (qmail 9445 invoked from network); 18 Jul 2013 13:54:44 -0000 Received: from unknown (HELO ?192.168.1.26?) (212.98.191.213) by vorsha.objectstyle.org with SMTP; 18 Jul 2013 13:54:44 -0000 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: Serialization warnings From: Andrus Adamchik In-Reply-To: Date: Thu, 18 Jul 2013 16:50:03 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <469C54B6-E93E-4039-90ED-EFED1EC095D1@objectstyle.org> References: To: dev@cayenne.apache.org X-Mailer: Apple Mail (2.1508) X-Virus-Checked: Checked by ClamAV on apache.org 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 = wrote: > Going back to https://issues.apache.org/jira/browse/CAY-1622 ... >=20 > How about if Cayenne Modeler has an option for the following choices: >=20 > A) Generate @SuppressWarnings("serial") in the super/sub classes. >=20 > B) Generate a a calculated serialVersionUID in the superclass and > default the value in the subclass: >=20 > _Foo: protected static final long serialVersionUID =3D [calculated]; > Foo: protected static final long serialVersionUID =3D = _Foo.serialVersionUID; >=20 > 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. >=20 > Thoughts? >=20 > mrg >=20