This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I keep getting this exception and I'm not sure why.
I have a servlet that gets an object from the database using hibernate and places it in the web session. Then later, another servlet retrieves the object from the web session, modifies it, and saves it back to the database using hibernate.
After the o2 assignment, I set some values, call save, and then commit. However, it never runs those AFAIK. I have a log statement before and after the load command, and only the one before gets called.
I tried it without the load statement, but then I get an error during the save.
Any ideas what I'm doing wrong? Should I just do a query instead of the load?