Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 88373 invoked from network); 18 May 2005 01:12:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 May 2005 01:12:56 -0000 Received: (qmail 54558 invoked by uid 500); 17 May 2005 19:19:25 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 54417 invoked by uid 500); 17 May 2005 19:19:23 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 35804 invoked by uid 99); 17 May 2005 12:57:42 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Message-ID: <2089778113.1116322282596.JavaMail.jira@ajax.apache.org> Date: Tue, 17 May 2005 11:31:22 +0200 (CEST) From: "Thomas Dudziak (JIRA)" To: ojb-dev@db.apache.org Subject: [jira] Assigned: (OJB-43) Persistent inner classes and xdoclet In-Reply-To: <1257383120.1116276728782.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/OJB-43?page=all ] Thomas Dudziak reassigned OJB-43: --------------------------------- Assign To: Thomas Dudziak > Persistent inner classes and xdoclet > ------------------------------------ > > Key: OJB-43 > URL: http://issues.apache.org/jira/browse/OJB-43 > Project: OJB > Type: Bug > Versions: 1.0.3 > Reporter: Laurie Harper > Assignee: Thomas Dudziak > > To reference an inner class, xdoclet requires it to be referenced as Outer.Inner while OJB requires it to be referenced as Outer$Inner. This makes it impossible to get a correct mapping using the xdoclet plugin. Here's a truncated example that demonstrates the problem: > /** > * @ojb.class > */ > public class History { > /** > * @ojb.class > */ > public static class Change { > // change log info... > } > /** > * @ojb.collection foreignkey="..." > * element-class-ref="...History$Change" > */ > private List changes; > } > xdoclet will report "Collection changes in class ...History references an unknown class ...History$Change." Replacing the '$' with a '.' will allow xdoclet to generate the mapping, but OJB will fail to load the repository, reporting a ClassNotFoundException for ...History.Change. The repository_user.xml needs to be manually editted after generation by xdoclet. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org