I am unable to get xdoclet to generate a mapping file for a subclass. I have seen several examples on the net but it doesn't seem to work for me. I would appreciate any pointers.
Person.java
Code:
/**
* @hibernate.class table="Person" proxy="Person" discriminator-value="Person"
* @hibernate.discriminator column="subclass" type="string" length="15"
*/
public class Person implements Serializable {
// property tags
}
Student.java
Code:
/**
* @hibernate.subclass proxy="Student" discriminator-value="Student"
*/
public class Student extends Person implements Serializable {
// property tags
}
excerpt from ant messages
[hibernatedoclet] 22:59:26,052 DEBUG matchesGenerationRules:717 - Reject class 'com.ccsi.teachersaid.common.Student' because it doesn't have class tag 'hibernate.class'.
[hibernatedoclet] 22:59:26,062 DEBUG matchesGenerationRules:723 - Accept class 'com.ccsi.teachersaid.common.Person' because it has class tag 'hibernate.class'.
Thanks for your time!
Timothy Vogel