Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2152ED578 for ; Tue, 8 Jan 2013 18:46:53 +0000 (UTC) Received: (qmail 26365 invoked by uid 500); 8 Jan 2013 18:46:52 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 26323 invoked by uid 500); 8 Jan 2013 18:46:52 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 26315 invoked by uid 99); 8 Jan 2013 18:46:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2013 18:46:52 +0000 X-ASF-Spam-Status: No, hits=0.8 required=5.0 tests=FROM_12LTRDOM,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2013 18:46:47 +0000 Received: from tom.nabble.com ([192.168.236.105]) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TseBt-0003hr-Pf for derby-user@db.apache.org; Tue, 08 Jan 2013 10:46:26 -0800 Date: Tue, 8 Jan 2013 10:46:25 -0800 (PST) From: Matthew Adams To: derby-user@db.apache.org Message-ID: <1357670785777-126304.post@n7.nabble.com> Subject: Force unique constraint to be enforced at statement execution? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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. Thanks, Matthew -- 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.