Web Development - Philip Wu
Tips and experience about developing websites with various technologies
Tuesday, November 2, 2010
hibernate constrainviolationexception foreign key constraint
This was due to some test cases creating their own hibrenate sessions and transactions and attempting to save across multiple sessions and multiple transactions.
The fix was to ensure only one session is used across DAO calls.
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)