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 A7CEF10A1A for ; Tue, 17 Dec 2013 03:43:09 +0000 (UTC) Received: (qmail 60327 invoked by uid 500); 17 Dec 2013 03:43:09 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 60263 invoked by uid 500); 17 Dec 2013 03:43:08 -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 60230 invoked by uid 99); 17 Dec 2013 03:43:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Dec 2013 03:43:07 +0000 Date: Tue, 17 Dec 2013 03:43:06 +0000 (UTC) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (OPENJPA-2148) Issue with MaxColumnNameLength in the OracleDictionary class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Curtis resolved OPENJPA-2148. ---------------------------------- Resolution: Cannot Reproduce I'm closing this JIRA as I'm unable to reproduce the problem. Please reopen with a simple unit test if you're still having this problem. > Issue with MaxColumnNameLength in the OracleDictionary class > ------------------------------------------------------------ > > Key: OPENJPA-2148 > URL: https://issues.apache.org/jira/browse/OPENJPA-2148 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.1.1 > Reporter: aabbcc > Priority: Blocker > > I am using oracle database with OpenJPA. > The DBDictionary class defines default MaxColumnNameLength as 128. > But In the OracleDictionary class which extend DBDictionary has MaxColumnNameLength as 30. While generating sql query, JPA takes first 28 characters of the column name and ignores rest of the characters. Also it takes start & end quotes, which in total makes it to 30 characters > Due to this, jpa query fails if there are column in the oracle database with more than 28 characters as it finds mismatch in SQL query and actual column name. > Please fix this issue by changing MaxColumnNameLength in OracleDictionary class to 128. -- This message was sent by Atlassian JIRA (v6.1.4#6159)