Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-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 6EC5ED6DF for ; Mon, 27 Aug 2012 14:11:19 +0000 (UTC) Received: (qmail 62005 invoked by uid 500); 27 Aug 2012 14:11:19 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 61880 invoked by uid 500); 27 Aug 2012 14:11:18 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 61871 invoked by uid 99); 27 Aug 2012 14:11:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2012 14:11:18 +0000 X-ASF-Spam-Status: No, hits=2.7 required=5.0 tests=HTML_MESSAGE,HTML_OBFUSCATE_10_20,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of daxiezhi@gmail.com designates 209.85.214.174 as permitted sender) Received: from [209.85.214.174] (HELO mail-ob0-f174.google.com) (209.85.214.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2012 14:11:10 +0000 Received: by obbuo13 with SMTP id uo13so9497872obb.33 for ; Mon, 27 Aug 2012 07:10:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=m4vZk2IBaU7hHhIeCBklUOcyLn8MmoVDKQPH4LwzP24=; b=xs5KfaDhf0ABVBJYoAwj1HgoZe+l18XO1aiYWkpJZsA4h4DG9QeWYl4VZV4GAN7EMo kU1beo5zz9+dYc8cPFFa1QuJnSqMppPi6A69jA/Dv0GNuSD5Mzt5Qm34753THq5LePUN lTfrBqcF4QiHaI3Q6Er0nohHceUy42sp+xDIC6OywEAaXA1YweFZzGmNb5txP21jCr1p lAfCApGdNJOuAqyfxVgYG1AN19UXJMZjTOaWmh/DshU1sx3+bbWG0mALAfSonBbw2bWJ mLWzQlXGxKBNrqbRQ7YELKBvqANW4qyXNfNPfAx+InSQSyxWsp4NDeV+4JMaGU3wVdFO SU2A== MIME-Version: 1.0 Received: by 10.182.18.143 with SMTP id w15mr3932636obd.6.1346076648959; Mon, 27 Aug 2012 07:10:48 -0700 (PDT) Received: by 10.182.181.97 with HTTP; Mon, 27 Aug 2012 07:10:48 -0700 (PDT) Date: Mon, 27 Aug 2012 22:10:48 +0800 Message-ID: Subject: Existing column XXX on table XXXX is incompatible with the same column in the given schema definition. From: Zhi Xie To: dev@openjpa.apache.org Content-Type: multipart/alternative; boundary=f46d043c824a806d4504c83fe4ae --f46d043c824a806d4504c83fe4ae Content-Type: text/plain; charset=ISO-8859-1 I have met a problem using openjpa2.1.1. I have defined a JoinTable "user_group" with a JoinColumn "uName", the uName is a column of Table user defined varchar(128). But there is not a length attribute inJoinColumn. So the default value 255 is set on the JoinColumn uName. My question is how to avoid the warning. WARN [Schema] Existing column "uName" on table "test.user_group" is incompatible with the same column in the given schema definition. Existing column: Full Name: user_group.uName Type: varchar Size: 128 Default: null Not Null: true Given column: Full Name: user_group.uName Type: varchar Size: 255 Default: null Not Null: true I want to find a solution to avoid the warning. Could anybody give me any comment? -- Best Regards Gary --f46d043c824a806d4504c83fe4ae--