Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 2.1.7
Name and version of the database you are using: mysql 4.1.9
I'm trying to map an class that implements an interface without success.
I use xdoclet to generate the hbm files.
As I have read in chapter 8 of the documentation, what I'm trying to do is perfectly possible.
The problem is that the xdoclet that I put into my implementing class doesn't seem to be taken into account.
Here is how my interface looks :
/**
* @hibernate.class table="_i_event"
*/
public interface IEventVO {...}
And here is how I map my implementing class :
* @hibernate.joined-subclass table="_calendar_event"
* @hibernate.joined-subclass-key column="ID"
*
*/
public class CalendarEventVO implements IEventVO{...}
The resulting hbm file doesn't have the joined-subclass section as if my implementing class doesn't know it is 'extending' the interface.
Am I doing something wrong with xdoclet or did I not correctly understand the hibernate documentation and it is not possible to map implementing classes like subclasses of there interfaces?
Thanks,
Arthur Clement