Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 15174 invoked from network); 29 Jun 2010 15:29:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Jun 2010 15:29:42 -0000 Received: (qmail 45092 invoked by uid 500); 29 Jun 2010 15:29:42 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 45020 invoked by uid 500); 29 Jun 2010 15:29:41 -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 44929 invoked by uid 99); 29 Jun 2010 15:29:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jun 2010 15:29:41 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.83.174] (HELO mail-pv0-f174.google.com) (74.125.83.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jun 2010 15:29:32 +0000 Received: by pvc7 with SMTP id 7so210875pvc.33 for ; Tue, 29 Jun 2010 08:28:10 -0700 (PDT) Received: by 10.143.85.4 with SMTP id n4mr7862915wfl.312.1277825102446; Tue, 29 Jun 2010 08:25:02 -0700 (PDT) Received: from brevsnb005 ([58.165.210.209]) by mx.google.com with ESMTPS id e32sm4578493wfj.15.2010.06.29.08.24.59 (version=SSLv3 cipher=RC4-MD5); Tue, 29 Jun 2010 08:25:01 -0700 (PDT) Reply-To: From: "C N Davies" To: References: <4C29AE39.2080704@MPA-Garching.MPG.DE> <4C2A076F.80409@apache.org> In-Reply-To: <4C2A076F.80409@apache.org> Subject: RE: Table name too long Date: Wed, 30 Jun 2010 01:24:56 +1000 Organization: C N Davies Pty Ltd Message-ID: <01c101cb179f$3d4e1f40$b7ea5dc0$@cndavies.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKqkg3Q+vS5u7PPmKrCVjNphEm/rQHpPByWkMrPfFA= Content-Language: en-au X-Virus-Checked: Checked by ClamAV on apache.org Looks like a defect but you can use the properties to set openjpa.jdbc.DBDictionary for maxTableNameLength to set the maximum length. According to the doc the default is 128 characters but that's = not true! Chris -----Original Message----- From: Donald Woods [mailto:dwoods@apache.org]=20 Sent: Wednesday, 30 June 2010 12:47 AM To: users@openjpa.apache.org Subject: Re: Table name too long Which version of Oracle and the JDBC driver are you using? -Donald On 6/29/10 4:26 AM, J=F6rg Knoche wrote: > Hello, >=20 > I think I have a problem related to Bug 866. I am using an Oracle=20 > database and I'm getting the following Exception during the = SchemaTool: >=20 > org.apache.openjpa.util.UserException: Table name=20 > "TEST.DIAGNOSTIC_AVRDATA_SEGMENTEDAR" is 35-character long. The=20 > database allows maximum 30-character for a table name. > at > org.apache.openjpa.jdbc.sql.DBDictionary.checkNameLength(DBDictionary. > java:5215) >=20 > at > org.apache.openjpa.jdbc.sql.DBDictionary.getCreateTableSQL(DBDictionar > y.java:3304) >=20 > at > org.apache.openjpa.jdbc.sql.OracleDictionary.getCreateTableSQL(OracleD > ictionary.java:899) >=20 >=20 > The table name itself is cut off correctly after 30 characters, but it = > seems that the check for the name length includes also the schema=20 > name, so that in total the Table name is seen as too long. I am using=20 > the > 2.0.0 release of OpenJPA, but I also tried the 1.3.0 and 2.1.0=20 > snapshots which showed the same behaviour. >=20 > Hoping for hints how to solve this. >=20 > Cheers, > Joerg. >=20