From dev-return-9511-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Fri Nov 14 06:04:35 2008
Return-Path:
Delivered-To: apmail-openjpa-dev-archive@www.apache.org
Received: (qmail 72427 invoked from network); 14 Nov 2008 06:04:35 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2)
by minotaur.apache.org with SMTP; 14 Nov 2008 06:04:35 -0000
Received: (qmail 1409 invoked by uid 500); 14 Nov 2008 06:04:42 -0000
Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org
Received: (qmail 1384 invoked by uid 500); 14 Nov 2008 06:04:42 -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 1373 invoked by uid 99); 14 Nov 2008 06:04:42 -0000
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2008 22:04:42 -0800
X-ASF-Spam-Status: No, hits=0.2 required=10.0
tests=SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of lists+1214986235816-210739@n2.nabble.com designates 216.139.236.158 as permitted sender)
Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2008 06:03:21 +0000
Received: from tervel.nabble.com ([192.168.236.150])
by kuber.nabble.com with esmtp (Exim 4.63)
(envelope-from )
id 1L0rmm-0007NX-IH
for dev@openjpa.apache.org; Thu, 13 Nov 2008 22:04:04 -0800
Message-ID: <1226642644561-1497344.post@n2.nabble.com>
Date: Thu, 13 Nov 2008 22:04:04 -0800 (PST)
From: Yuri
To: dev@openjpa.apache.org
Subject: Customizing OpenJPA
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: ydewit@gmail.com
X-Virus-Checked: Checked by ClamAV on apache.org
I started running through a few debugging sessions to understand the design
and come up for a course of action in terms of extending OpenJPA. A few
questions came up:
- How can a ProductDerivation be used to extend OpenJPA (I am assuming that
is its purpose)?
- What is the difference between ProductDerivation.TYPE_PRODUCT and
ProductDerivation.TYPE_FEATURE
- What is the difference between ClassMetadata and MappingInfo? It seems
that the latter is a temporary holder of schema objects until the final
ClassMetadata is assembled. Is that correct?
- Noticed that the enhancement on class loading is no using the classes I
created to extend OpenJPA (i.e. Configuration and what follows from that).
- Also noticed that MetadataRepository is created at least two times once
when enhancing and once for real.
I am planning initially to add a new @Temporal annotation and to make sure
that this annotation translates into additional columns in the table, into a
modified primary key and custom handling of the SQL statements. What would
be the main touch points in the code to make that happen?
thanks,
-- yuri
--
View this message in context: http://n2.nabble.com/Customizing-OpenJPA-tp1497344p1497344.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.