Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

delay validation in hibernate till commit

 
hrishy yhsirsh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Can somebody give me a simple example on how to delay validation in hibernate till i commit the transaction.

In oracle for example i can create a table with all the constraints as deferred so that validation takes place at commit time only and not at insert.

However i am currently not using Oracle


regards
Edwards
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand the question. What validation are you talking about, Hibernate validator or database constracints? And what difference does it make when the validation occurs? Can you explain the problem you have (perhaps with some example code)?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic