From IRC:
Quote:
<max_at_hibernate> yourObject.setValue(new SequenceGenerator().generate((SessionImplementor)session, yourObject))
<max_at_hibernate> in short ;)
<rizzo> is "yourObject" my composite id class?
<rizzo> and where do I specify the sequence name?
<max_at_hibernate> the object is just the object you want an id generated for
<max_at_hibernate> you can use that as "input"
<max_at_hibernate> options are set via seqgen.configure(...)
<max_at_hibernate> look in the source code of sequencegenerator what it uses.