Hi gavin,
I saw "session bean hilo generator" on the wiki
http://hibernate.org/47.html - let me know if this is the url I should look at.
With that I am writing my own, Session Bean Hi/Lo Generator
but as mentioned in that I couldn't write
Code:
IdentifierGenerator gen = new HiLoGenerator();
as I couldn't find HiLoGenerator so I used
Code:
IdentifierGenerator gen = new TableHiLoGenerator();
at run time, I get an error as method
Code:
public void configure(Type type, Properties params, Dialect d)
was not called in TableHiLoGenerator and in its super class TableGenerator.
as this method is not called, the
query member variable in
TableGenerator is null. I get errors b'cos of that.
query is initialized in configure()
Do I have to call configure() method or will the API call it and initialize the
query
Is there any solution for that? How do I write my
Session Bean Hi/Lo Generator. Please advise.