Thank tou for your reply,
Tell me if I've understood you right :
I'm gonna change the generator to "assigned"
write a public String getSequenceNextValue(String sequenceName) method in SeqDAO
In that method I will instantiate a SequenceGenerator
configure it :
configure(Type type, Properties params, Dialect dialect)
and then generate the identifier :
generate(SessionImplementor session, Object obj)
and take the String.valueOf() the generated identifier
to return it.
Is that correct?
But how to configure the Sequence generator? What arguments should I pass to the configure and generate methods?
If you can help me ,thanks
_________________ ----------------------
Eric Manuguerra
|