Hi,
I've this simple class 'Account' with properties login and password, both String objects.
I've setup a small test example with SQL Server where I have a table Account( login, password ) and a hibernate_unique_key table for hilo id generation.
When running from console (method main), I am able to save a new Account as well as retrieve it with a query. Everything works fine.
When running the same code from a Servlet using Tomcat 4.1, however, I get the following error when executing session.save():
FOR UPDATE cannot be specified on a READ ONLY cursor
It seems that Hibernate gets this error when trying to update the hibernate_unique_key table, but I don't have a clue why the 'cursor' is read only.
Any ideas?
Thanks!
|