Scratch my last post. However, I am having the same issue. XDoclets are as follows:
Code:
Event.java:
* @hibernate.class
* table="EVENT_LOG"
* polymorphism="implicit"
*
* // Not fully-qualified!
* @hibernate.discriminator
* column="EVENT_TYPE"
* type="string"
* length="64"
*
*
*/
public abstract class Event implements Serializable { with some columns and an ID, EVENT_TYPE not listed as a column. }
DocEvent.java:
* @hibernate.subclass
* discriminator-value="DocEvent"
*
*
*
*/
public class DocEvent extends Event { 1 more ancillary column... }
This only generates Event.hbm.xml - with the subclass properly listed inside and all that - but not DocEvent.hbm.xml. The subsequent problem is:
Code:
14:38:06,729 INFO net.sf.hibernate.cfg.Configuration:347 - Mapping resource: com/whoever/util/logger/DocEvent.hbm.xml
------------- ---------------- ---------------
Testcase: testSingleEvent took 2.141 sec
Caused an ERROR
Error instantiating database persistence layer: Resource: com/whoever/util/logger/DocEvent.hbm.xml not found
com.whoever.util.logger.EventException: Error instantiating database persistence layer: Resource: com/whoever/util/logger/DocEvent.hbm.xml not found
at...
Questions: 1. Should there be a DocEvent.hbm.xml generated?
2. If not, why is this failing?