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 E6D589EC0 for ; Thu, 14 Jun 2012 14:15:25 +0000 (UTC) Received: (qmail 59468 invoked by uid 500); 14 Jun 2012 14:15:25 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 59443 invoked by uid 500); 14 Jun 2012 14:15:25 -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 59435 invoked by uid 99); 14 Jun 2012 14:15:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 14:15:25 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mkienenb@gmail.com designates 74.125.82.171 as permitted sender) Received: from [74.125.82.171] (HELO mail-we0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 14:15:19 +0000 Received: by wejx9 with SMTP id x9so2569687wej.16 for ; Thu, 14 Jun 2012 07:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=l1GsUsw0Mf8Ix/6Q5+Z6boMhWuh7vZehRsOPdY4g6YY=; b=G5BDPmzA1eSG1di02mJd+JGX7XEQKtRc1TqDmeHBMcePjS6KRunL+rhK7zg2kAIhWT SF639P7ZAXd51fSDbhd6PvmYWFdebkXeJNcuiiIza+9wOYedREFb4D+/23f4o84yRdn0 BmblQwT6DYrsfD8JWJ8vz6uFaZn+e6yz0wDsVuiWboaJkHdRRBd53hmm4ze8VXk5hzwf vW8iM4Iy/9vo+51Zd2aMjTDzjulO843K+BrtWqP3x3gfPv4aEWabbXtn0HWHR7VijJ0S BJQLwI6kHP/nVpfJbfRSNWgkiV3ZFioZTR+GIbF53HxcDhnhApIEkm5wyPDXaDCt+tO1 8yWg== Received: by 10.216.135.146 with SMTP id u18mr1291374wei.5.1339683299179; Thu, 14 Jun 2012 07:14:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.169.212 with HTTP; Thu, 14 Jun 2012 07:14:38 -0700 (PDT) In-Reply-To: References: From: Mike Kienenberger Date: Thu, 14 Jun 2012 10:14:38 -0400 Message-ID: Subject: Re: Serialization warnings To: dev@cayenne.apache.org Content-Type: text/plain; charset=ISO-8859-1 +1 for doing this for the generate-always classes. Undecided about the generate-once subclasses. On Thu, Jun 14, 2012 at 10:06 AM, Michael Gentry 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