Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 53971 invoked from network); 27 Sep 2008 12:48:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Sep 2008 12:48:05 -0000 Received: (qmail 2108 invoked by uid 500); 27 Sep 2008 12:48:03 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 2072 invoked by uid 500); 27 Sep 2008 12:48:03 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 2060 invoked by uid 99); 27 Sep 2008 12:48:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Sep 2008 05:48:03 -0700 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; Sat, 27 Sep 2008 12:47:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 47CF1234C1F6 for ; Sat, 27 Sep 2008 05:47:44 -0700 (PDT) Message-ID: <372191664.1222519664293.JavaMail.jira@brutus> Date: Sat, 27 Sep 2008 05:47:44 -0700 (PDT) From: "Christophe Lombart (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-1759) Simplify the usage of OCM annotations In-Reply-To: <227686622.1222198544313.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/JCR-1759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christophe Lombart resolved JCR-1759. ------------------------------------- Resolution: Fixed Fix Version/s: 1.5 Now, it is simpler to define the mapping for abstract classes, inheritance tree and persistent classes that implement interfaces. See an example in the unit test: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-ocm/src/test/java/org/apache/jackrabbit/ocm/testmodel/SimpleAnnotedAbstractClass.java http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-ocm/src/test/java/org/apache/jackrabbit/ocm/testmodel/SimpleAnnotedClass.java http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-ocm/src/test/java/org/apache/jackrabbit/ocm/testmodel/SimpleInterface.java > Simplify the usage of OCM annotations > ------------------------------------- > > Key: JCR-1759 > URL: https://issues.apache.org/jira/browse/JCR-1759 > Project: Jackrabbit > Issue Type: Improvement > Components: jackrabbit-ocm > Affects Versions: 1.5 > Reporter: Christophe Lombart > Assignee: Christophe Lombart > Fix For: 1.5 > > > If we are using more reflections during the OCM init phase (class descriptor loading), some OCM annotation settings are not necessary : > @Node(isAbtract=true) : used to specify an abstract classes > @Node(extend=....) : used to specify the ancestor class > @Node(isInterface= ...) : used to specify the entity as an interface > @implement : used to specify the associated interfaces > If this refactoring is done, we can set them as deprecated. > The performances will not suffer because this is done only once during the application startup (when the ObjectContentManager is initialized). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.