File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Commit a transaction

 
dina raj
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My application contains a table, Cust which has a child CUST_IDENTIFIER.

The problem arises when we try to insert a customer who has data that creates a constriant violation in the CUST_IDENTIFIER but no issues in the cust table. Will modifying the hbm.xml file, solve this issue. I need to solve the issue so that when i save the CUST table it tells me that it cannot insert because the child table has a constraint violation (or an exception is thrown) . Instead now data is inserted into the child table but an exception is thrown when it tries the CUST_IDENTIFIER table. I need to solve this by modifying the hibernate files .

[ Edited to use code tags - Paul Sturrock ]
[ November 17, 2006: Message edited by: Paul Sturrock ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, try to put

inverse="true"

on the many side instead of the one side, and see what happens.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic