[jira] Updated: (XDP-224) mapping not works

"Konstantin Pribluda (JIRA)" <jira-yCVjj/[email protected]> Thu, 8 Nov 2007 12:49:35 -0600 (CST)
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <29839616.1194547775884.JavaMail.haus-jira@codehaus01.managed.contegix.com>
     [ http://jira.codehaus.org/browse/XDP-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Pribluda updated XDP-224:
------------------------------------

    Component/s: hibernate

> mapping not works
> -----------------
>
>                 Key: XDP-224
>                 URL: http://jira.codehaus.org/browse/XDP-224
>             Project: XDoclet 2 Plugins
>          Issue Type: Bug
>          Components: hibernate
>    Affects Versions: 1.0.4
>         Environment: eclipe, java 1.4, 
>            Reporter: marcelo escobar
>             Fix For: 1.0.4
>
>
> I'm trying to mapping a simple inheritance where i have some properties(inclusive the id) in the parent class:
> /**
>  * @hibernate.class abstract="true"
>  */
> public class BaseEntity extends BaseObject {
> 	private static final long serialVersionUID = 1L;
> 	/**
> 	 * @hibernate.id name="id" column="ID" generator-class="uuid"
> 	 */
> 	protected String id = "noid";
> ...
> and my subclass:
> /**
>  * @hibernate.class table="MMP_HELP_QUESTION"
>  */
> public class HelpQuestion extends BaseEntity {
>     ...(omitted the properties)
> }
> but i get this error message:
> org.generama.OutputValidationError: 
>    Line: 6 Column: -1
>    Message: Element "class" does not allow "property" here.
> I´ts because the element id was not mapped. I´ts suppose to works in xdoclet 1.2 (because they merge the id in parent class), but in xdoclet2 not.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/