[ http://jira.codehaus.org/browse/XDP-164?page=all ]
Konstantin Pribluda closed XDP-164.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.0.4
Though your use case is strange, but problem is also not bound to
@hibernate.class , but to multiple paths to subclass due to multiple interface
inheritance.
this is fixed in current repository, snapshot will be deployed shortly
> duplication of subclass hibernate mapping
> -----------------------------------------
>
> Key: XDP-164
> URL: http://jira.codehaus.org/browse/XDP-164
> Project: XDoclet 2 Plugins
> Issue Type: Bug
> Components: hibernate
> Affects Versions: 1.0.3
> Reporter: Maksimenko Alexander
> Assigned To: Konstantin Pribluda
> Fix For: 1.0.4
>
>
> I'm using 1.0.3 version of hibernate xdoclet plugin and have some problems
> with hierarchy generation.
> I have 3 classes:
> /**
> * @hibernate.class abstract="true" table="A"
> * @hibernate.discriminator column="type" type="java.lang.String" */
> public interface Interface1
> /**
> * @hibernate.class abstract="true"
> */
> public interface Interface2 extends Interface1
> and implementation of those two classes:
> /**
> * @hibernate.subclass discriminator-value="base1"
> */
> public class Base1 implements Interface1,Interface2{
> After generation I get duplicated Base1 description:
> <hibernate-mapping>
> <class abstract="true" table="A" name="Interface1">
> <id column="id" name="id">
> <generator class="native"/>
> </id>
> <discriminator type="java.lang.String" column="type"/>
> <subclass name="Base1" discriminator-value="base1"/>
> <subclass name="Base1" discriminator-value="base1"/>*
> </class>
> </hibernate-mapping>
--
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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest