> 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>

and what I REALLY want is:

            <generator class="sequence">
                <param name="sequence">project_widget_id_seq</param>
            </generator>

Thompson Marzagao

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Konstantin
Priblouda
Sent: Friday, August 13, 2004 4:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] hibernatedoclet: inheritance and id sequences


--- Thompson_Marzag&#65533;o <[EMAIL PROTECTED]>
wrote:

> Hello!
>
> I've got a hibernatedoclet problem:
>
> Let's say I have class Widget:
>
> public class Widget
> {
>         private Long id;
>
>         /*
>         * @hibernate.id
>         *   column="id"
>         *   type="java.lang.Long"
>         *   generator-class="sequence"
>         *
>         * @hibernate.generator-param
>         *   name="sequence"
>         *   value="widget_id_seq"
>         */
>         public Long getId()
>         {
>                 return id;
>         }
> ...
> }
>
> public class ProjectWidget extends Widget
> {
>         private Project project;
>
>         ...
> }
>
> My problem is :
> How can I customize in my class ProjectWidget so
> that the id sequence is
> "project_widget_id_seq" ?

did you tried to override getId() in your subclass,
and tag it there?

regards,

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verstdrkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f|r die Festanstellung.
Arbeitsort: Mainz
Skills:  Programmieren, Kenntnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------



__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail


-------------------------------------------------------
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

Reply via email to