> Is there a hibernate expert out there who knows how
> to do inheritance with
> hibernatedoclet?
> I have this problem - I'm wanting to persist a class
> that inherits its ID
> from a base class, but hibernatedoclet seems unable
> to do this. For example:
>
> public class Base
> {
> private int id;
> /**
> * @hibernate.id generator-class="assigned"
> */
> private int getId()
> {
> return id;
> }
> private void setId(int id)
> {
> this.id = id;
> }
> }
>
> /**
> * @hibernate.class table="Sub"
> */
> public class Sub extends Base
> {
> private String name;
>
> /**
> * @hibernate.property
> */
> private String getName()
> {
> return name;
> }
> private void setName(String name)
> {
> this.name = name;
> }
> }
>
This works for me with actual CVS version vhibernate
doclet ( at least used to work yesterday, I did not
recompiled it yet :) )
POssible cause could be that your base class source is
not seen by xdoclets xjavadoc - in this case it's
unable to find class tags from there...
regards,
=====
Konstantin Priblouda ( ko5tik ) Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink?
You could win a Tablet PC. Get a free Tablet PC hat just for playing.
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user