--- Tobias Joch <[EMAIL PROTECTED]> wrote:

>  
> 
>  
> 
> > Gesendet: Montag, 24. Januar 2005 13:20
> 
> > An: [email protected]
> 
> > Betreff: Re: AW: AW: [Xdoclet-user] [XDoclet +
> Hibernate] UserType as
> 
> > @hibernate.id possible???
> 
> > 
> 
> > 
> 
> > --- Konstantin Priblouda wrote:
> 
> > 
> 
> > I think exactly this is supported. YOu have your
> 
> > custom type, you have getter returning this type,
> and
> 
> > then you put @hibernate.id - and you have your
> custom
> 
> > type ID...
> 
> > 
> 
>  
> 
> Unfortunately no :-(
> 
>  
> 
> Here again my little example who I try it:
> 
>  
> 
> /**
> 
>  * @return Returns the id.
> 
>  * @hibernate.id type = "SpecialClassType"
> unsaved-value = "none"
> 
>  *              
> generator-class="SpecialClassGenerator"
> 
>  */
> 
> public SpecialClass getId() {
> 
>   return id;
> 
> }
> 
>  
> 
> XDoclet generates this:
> 
>  
> 
>         <composite-id
> 
>             name="id"
> 
>             class="my.package.SpecialClass"
> 
>             unsaved-value="none"
> 
>         >
> 
>  
> 
>         </composite-id>
> 
>  
> 
> But hibernate need this:
> 
>  
> 
>         <id
> 
>             name="id"
> 
>             type="my.package.SpecialClassType"
> 
>             unsaved-value="none"
> 
>         >
> 
>                   <generator
> class="SpecialClassGenerator"/>
> 
>         </id>

It would be pretty easy to add support for this in 
xdoclet-2 plugin. But I can not commit the changes
untill tomorrow evening...
( though I can compile version with it and send it to
you) 
Need it?

regards,

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Plugins for xdoclet-2 are released. check it out at:
http://www.sourceforge.net/projects/xdoclet-plugins/
----[ http://www.pribluda.de ]------------------------


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to