Techspot - Databases, web, servers - 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.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment