Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 31256 invoked from network); 5 Nov 2008 22:35:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Nov 2008 22:35:05 -0000 Received: (qmail 86626 invoked by uid 500); 5 Nov 2008 22:35:11 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 86463 invoked by uid 500); 5 Nov 2008 22:35:11 -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 86452 invoked by uid 99); 5 Nov 2008 22:35:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2008 14:35:11 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2008 22:34:02 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3FC17234C278 for ; Wed, 5 Nov 2008 14:34:44 -0800 (PST) Message-ID: <1163543157.1225924484244.JavaMail.jira@brutus> Date: Wed, 5 Nov 2008 14:34:44 -0800 (PST) From: "Albert Lee (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Resolved: (OPENJPA-580) Need a better algorithm to find DBDictionary classname in DBDictionaryFactory In-Reply-To: <70839935.1208918363356.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Albert Lee resolved OPENJPA-580. -------------------------------- Resolution: Fixed Fix Version/s: 2.0.0 1.3.0 > Need a better algorithm to find DBDictionary classname in DBDictionaryFactory > ----------------------------------------------------------------------------- > > Key: OPENJPA-580 > URL: https://issues.apache.org/jira/browse/OPENJPA-580 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Reporter: Jason Zheng > Assignee: Albert Lee > Priority: Minor > Fix For: 1.3.0, 2.0.0 > > > When I debug OpenJPA code, I am surprised to find that it creates an instance of AccessDictionary for a sample application which uses Derby. > The sample application is copied from book "Pro EJB3". The connection URL for the persistence unit is: > jdbc:derby://localhost:1527/fieldAccess;create=true > Since it contains 'Access' in the URL value, the OpenJPA code assumes it uses Access database. > We need a better algorithm to find classname for DBDictionary in DBDictionaryFactory. For example, we can assume the database is Access only if the URL starts with 'jdbc:access'. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.