--- Maksimenko Alexander <[EMAIL PROTECTED]>
wrote:

> Hi All!
> 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>
>  
> I can't change such object hierarchy so can be found
> another way to fix 
> this problem?


Well, your class hierarchy appears to  drive crazy
something in hibernate plugin. ( or maybe qdox... ) 

Is it realy necessary to implement both interfaces? 
Since I2 is subinterface of I1, implementing I2
would be sufficient.


regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to