David Harkness wrote:
> If your Widget base class is abstract -- never instantiated directly,
> only via subclasses -- could you merely define the accessor (no tags) in
> Widget and then override and tag the accessor in each subclass? I'm not
> using Hibernate yet, so I'm just throwing out ideas.
Hi David,
Thanks for your suggestion. But, my Widget base class is not abstract. Yet,
even if I were to try to create the hierarchy AbstractWidget <- Widget <-
ProjectWidget, I still need to define a sequence name in both Widget and
ProjectWidget concrete classes. That's when hibernatedoclet creates this in
ProjectWidget.hbm.xml:
<generator class="sequence">
<param name="sequence">widget_id_seq</param>
<param name="sequence">project_widget_id_seq</param>
</generator>
but I need simply:
<generator class="sequence">
<param name="sequence">project_widget_id_seq</param>
</generator>
Hi all,
No one has ever experienced this? Is this a bug?
Thompson
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Harkness,
David
Sent: Friday, August 13, 2004 1:35 PM
To: [EMAIL PROTECTED]
Subject: RE: [Xdoclet-user] hibernatedoclet: inheritance and id sequences
Thompson Marzagao penned
> [Konstantin Priblouda [EMAIL PROTECTED] wrote:]
>
> > did you tried to override getId() in your subclass,
> > and tag it there?
>
> Yes, I did. That's when I got this result in ProjectWidget.hbm.xml:
>
> <generator class="sequence">
> <param name="sequence">widget_id_seq</param>
> <param name="sequence">project_widget_id_seq</param>
> </generator>
If your Widget base class is abstract -- never instantiated directly,
only via subclasses -- could you merely define the accessor (no tags) in
Widget and then override and tag the accessor in each subclass? I'm not
using Hibernate yet, so I'm just throwing out ideas.
--
David Harkness Sony Pictures Digital
Sr. Software Engineer 310.482.4756 [EMAIL PROTECTED]
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user