It appears that hibernate doclet's handling of hibernate.subclass fails to
allow the following to work.

/**
 * @hibernate.class table="MY_TABLE" discriminator="TYPE"
 */
public interface IMyInterface
{
...
}

/**
 * Note: no hibernate tags
 */
public abstract MyBaseAbstractClass implements IMyInterface
{
...
}

/**
 * @hibernate.subclass discriminator-value="CONRETE1"
 */
public MyConcreteImplementation extends MyBaseAbstractClass
{
..
}

Done manually through hibernate-properties-XXX.xml file it is possible to
get it to work. However, it seems that hibernatedoclet should be able to
pick up the relationship between MyConcreteImplementation and IMyInterface.

Also, if the @hibernate.class refers to an interface, NO subclasses will
ever be generated, even if the @hibernate.subclass is in the directly
implementing class. I think this is more serious than the first bug. This is
due to XDtHibernate:forAllSubclasses tag in the template which doesn't
account for the current class being an interface.

Please let me know if I am missing something here.

Cheers,
--Bill



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to