Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9E6A7440 for ; Wed, 9 Nov 2011 16:29:09 +0000 (UTC) Received: (qmail 67361 invoked by uid 500); 9 Nov 2011 16:29:09 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 67317 invoked by uid 500); 9 Nov 2011 16:29:09 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 67309 invoked by uid 99); 9 Nov 2011 16:29:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 16:29:09 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of marc.walter@sbb.ch) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 16:29:04 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1ROB11-0006D4-V5 for users@openjpa.apache.org; Wed, 09 Nov 2011 08:28:43 -0800 Date: Wed, 9 Nov 2011 08:28:43 -0800 (PST) From: "M. Walter" To: users@openjpa.apache.org Message-ID: <1320856123952-6978516.post@n2.nabble.com> In-Reply-To: References: <1320850642796-6978223.post@n2.nabble.com> <1320852180834-6978287.post@n2.nabble.com> Subject: Re: Constraint violation using OneToOne relationship MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Rick, thank you for the fast responses! Yes I successfully tried the solution IBM proposed. But why do I have to add this property just for OneToOne relationships in order to make them work properly? For all other relationships this is not necessary. I really would like to understand this difference. Are there any side effects for the persistence mappings by adding the openjpa.jdbc.SchemaFactory property to the PU? I'm suspicious of adding properties to get things to work which in my opinion should work without further configuration. I wonder if creating both sides of a OneToOne relationship and persisting them by saving the parent entity is a special case. -- View this message in context: http://openjpa.208410.n2.nabble.com/Constraint-violation-using-OneToOne-relationship-tp6978223p6978516.html Sent from the OpenJPA Users mailing list archive at Nabble.com.