Thanks for the reply.

Given the following:

public interface User

...

public abstract class AbstractUser implements User

...

public class AdminUser extends AbstractUser


How do you handle the "User" interface?  Do you use @hibernate.class in the
AbstractUser class and @hibernate.joined-subclass in the AdminUser class?
If I do this, "User" does not get mapped which prevents me from doing
polymorphic saves.  How should this be handled?

Regards,

Joshua





-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Galbraith
Sent: Wednesday, August 17, 2005 12:34 PM
To: [email protected]
Subject: Re: [Xdoclet-user] xdoclet, table-per-subclass and interfaces
problem

Josh wrote:
> In particular, even though I have put
> @hibernate.joined-subclass tags in both the implementing classes, no
> mappings appear to be being generated at all, neither in the interface hbm
> file, nor are any hbm's generated for the implementing classes themselves
at
> all.  Does xdoclet not support interfaces?  Also, I looked all over the
> hibernate site for things on using interfaces & there's very little so I'm
> now wondering how supported interfaces are for hibernate.  If anyuone can
> clarify interface support or point me towards docs, I'd appreciate it.

I'm not clear on the exact nature of the problem.  If just 
@hibernate.joined-subclass is used at the class level, then nothing will 
be generated.  You also need to put @hibernate.class at the class level 
on the superclass, and the hbm file will be generated for the 
superclass, and should include the definitions from the subclasses that 
specify @hibernate.joined-subclass.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to