Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 96375 invoked from network); 24 Jul 2007 14:49:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2007 14:49:52 -0000 Received: (qmail 57932 invoked by uid 500); 24 Jul 2007 14:49:53 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 57900 invoked by uid 500); 24 Jul 2007 14:49:53 -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 57891 invoked by uid 99); 24 Jul 2007 14:49:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 07:49:53 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 07:49:51 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 120FF714163 for ; Tue, 24 Jul 2007 07:49:31 -0700 (PDT) Message-ID: <27197037.1185288571054.JavaMail.jira@brutus> Date: Tue, 24 Jul 2007 07:49:31 -0700 (PDT) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-266) Add Extensibility: Change "private" field/method to "protected" or "public" in OpenJPA classes to be extendable In-Reply-To: <11442200.1182816385855.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-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514987 ] Michael Dick commented on OPENJPA-266: -------------------------------------- The last change regarding DBDictionaries looks like it's a good start, but I have a few questions / issues. The changes seem to be intended to enable other vendors to repackage OpenJPA with their own set of DBDictionaries. This is a good thing, but the code only allows DB2, Oracle and SQLServer to be extended. This should be expanded and generalized to allow any DBDictionary to be overridden. The fix also requires the user to get a configuration object and cast it to our implementation class. This should be changed to use the JDBCConfiguration interface. If this is intended for use by other vendors, why don't we just provide the ability for the DBDictionaryFactory class to be extended? If the DBDictionaryFactory class was configurable (like SQLFactory for example), then vendors could prefer their own set of classes without messing around with JDBCConfigurationImpl. > Add Extensibility: Change "private" field/method to "protected" or "public" in OpenJPA classes to be extendable > ---------------------------------------------------------------------------------------------------------------- > > Key: OPENJPA-266 > URL: https://issues.apache.org/jira/browse/OPENJPA-266 > Project: OpenJPA > Issue Type: Improvement > Components: jdbc > Affects Versions: 1.0.0 > Reporter: Catalina Wei > Priority: Trivial > Fix For: 1.0.0 > > Attachments: OpenJPA-266.patch, OPENJPA-266.patch.txt > > > In order to extend existing OpenJPA classes, for example OperationOrderUpdateManager, private field or method needed to change to protected or public. > This kind of modification is not adding any functionality but making OpenJPA classes subclassable. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.