Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6403B108E3 for ; Wed, 24 Apr 2013 09:25:00 +0000 (UTC) Received: (qmail 80626 invoked by uid 500); 24 Apr 2013 09:24:59 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 80230 invoked by uid 500); 24 Apr 2013 09:24:53 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 80182 invoked by uid 99); 24 Apr 2013 09:24:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Apr 2013 09:24:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.109.24.31] (HELO smtp-vbr11.xs4all.nl) (194.109.24.31) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Apr 2013 09:24:44 +0000 Received: from remote.huizemolenaar.nl (D57D0452.static.ziggozakelijk.nl [213.125.4.82]) (authenticated bits=0) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id r3O9ONPT012676 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Wed, 24 Apr 2013 11:24:23 +0200 (CEST) (envelope-from henno@huizemolenaar.nl) Received: from HMS.hm.local ([fe80::6051:4a91:4c0d:d963]) by HMS.hm.local ([fe80::6051:4a91:4c0d:d963%10]) with mapi; Wed, 24 Apr 2013 11:24:28 +0200 From: Henno Vermeulen To: "'users@openjpa.apache.org'" Date: Wed, 24 Apr 2013 11:24:27 +0200 Subject: RE: repeatable autogenerate names for key constraints Thread-Topic: repeatable autogenerate names for key constraints Thread-Index: Ac4/TGLVVNzzhciHRzWr2R2CJOya6QAC+rZQADYJUEAAJe9a0A== Message-ID: <1C448C478A6B4743AF19DBC3C3DCE13203EADF381374@HMS.hm.local> References: <1C448C478A6B4743AF19DBC3C3DCE13203EADF381285@HMS.hm.local> <1C448C478A6B4743AF19DBC3C3DCE13203EADF381296@HMS.hm.local> <1C448C478A6B4743AF19DBC3C3DCE13203EADF381343@HMS.hm.local> In-Reply-To: <1C448C478A6B4743AF19DBC3C3DCE13203EADF381343@HMS.hm.local> Accept-Language: nl-NL Content-Language: nl-NL X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: nl-NL Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org Note that there is a serious bug in the code I included in the answer of my= own question. I am using the BaseClassStrategy also for subclasses which a= ffects what tables are generated for inheritance! To solve this you should = use But this again results in non-predictable names for primary keys used in su= bclasses.