[ 
http://jira.codehaus.org/browse/XDP-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konstantin Pribluda closed XDP-224.
-----------------------------------

    Resolution: Fixed

You should not map abstrat base entity  as @hibernate.class unless
you really intend it to be entity of its own.   resolving properties and IDs
in superclasses stops at entitities, so no id will be mapped in subclass.

just drop @hibernate.class declaration in super and you shall be fine. 



> 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

       

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to