Hi, i'm get the same problem because the Hibernate DTD does not permit that a joined-subclass have a subclass witch is the way to use a single table per-hierarchy with a discriminator value. Anyone knows how to solve it?
Details:
Hibernate Version: 2.1.4, 02. June 2004
Class headers with XDoclet Tags:
Code:
/**
* @since 18/07/2004
* @version 0.1
*
* @hibernate.class discriminator-value="U"
* proxy="br.ufpe.scacin.model.People"
* table="SCACIN_PEOPLE"
*/
public class People implements Identifiable {...}
Code:
/**
* @since 18/07/2004
* @version 0.1
*
* @hibernate.joined-subclass-key column="USER_ID"
*
* @hibernate.joined-subclass proxy="br.ufpe.scacin.model.User"
* table="SCACIN_USER"
*
*/
public class User extends People {...}
Code:
/**
* @since 18/07/2004
* @version 0.1
*
* @hibernate.subclass discriminator-value="A"
* proxy="br.ufpe.scacin.model.Administrator"
*/
public class Administrator extends User {...}
In the Administrator class, course, the tags does not work and the class is not mapped.
Thanks by any helps.