Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

delay validation in hibernate till commit  RSS feed

 
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)?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!