Originally posted by Nina Anderson:
I got the "all-delete-orphan" option from Hiberate.org: http://www.hibernate.org/hib_docs/reference/en/html/example-parentchild.html
This code always used to work. The only thing I changed was:
1. From Windows Xp to Windows Vista
2. From IBM Websphere server to Tomcat server
So, I don't understand why the application can retrieve data and all of a sudden cannot Save data in the database.
Originally posted by Bougnon Kipre:
Although the syntax you are using is in correctly quited in the link you provided, if I were you I would just try Mark suggestion for that is also the syntax I am familiar with.
I am not saying your are wrong in using the current syntax, I just want to eliminate this possibility.
Another suggestion to gradually change you environment.
Instead of changing both OS and Web server, I would do as follows:
1) First change OS: from XP to Vista.
2) if 1) works, then change Web server
Originally posted by Nina Anderson:
Eureeka! Found the problem.
I had a MS SQL Trigger that invokes table updates whenever the java application performs an insert on my Business_Service table. My updates in the SQL Trigger were failing because the ID field of the table I was trying to do that update did not exist. As a result of this, I was getting the generated Key error.
To resolve this, I'm checking if the ID field of the result exists in the database before I do an update.
I'm at peace now... :roll:
Don't get me started about those stupid light bulbs. |