On Fri, Jan 03, 2003 at 08:28:51AM -0800, Konstantin Priblouda wrote:
> > Secondly, I wonder how the @hibernate.id tag's
> > generator tag supports the
> > 'sequence' type, if it does. I tried to use it that
> > way:
> >
> > @hibernate.id generator-class="sequence"
> > generator-class-param-1="seq_test"
> >
> > but it seems that the generated hibernate descriptor
> > xml leaves the
> > sequencer's name empty.. Is there any other place
> > where I should provide the
> > sequence's name, or maybe that is not yet
> > implemented, and at last, what's
> > exactly generator-class-param-[123] for in the
> > @hibernate.id tag?
>
> Can you post your source ( java ) and what gets
> generated?
OK, here's the code:
--
/**
* Returns the id.
* @return long
* @hibernate.id generator-class="sequence" generator-class-param-1="seq_device"
*/
public long getId() {
return id;
}
--
generates this .hbm.xml:
--
<id
name="id"
>
<generator class="sequence">
</generator>
</id>
--
regards,
Christopher
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user