db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Adams <matt...@matthewadams.me>
Subject Force unique constraint to be enforced at statement execution?
Date Tue, 08 Jan 2013 18:46:25 GMT
Hi all,

How do I force a unique constraint to be enforced upon statement execution
instead of at transaction commit?

I'm using Spring Data JPA over DataNucleus & Derby (embedded), and Spring's
persistence exception translation proxy is not translating the unique
constraint exception because it's happening at transaction commit instead of
when the statement is executed.


View this message in context: http://apache-database.10148.n7.nabble.com/Force-unique-constraint-to-be-enforced-at-statement-execution-tp126304.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.

View raw message