Return-Path: X-Original-To: apmail-cayenne-commits-archive@www.apache.org Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA2E1D1A0 for ; Tue, 23 Oct 2012 15:59:15 +0000 (UTC) Received: (qmail 52096 invoked by uid 500); 23 Oct 2012 15:59:15 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 51117 invoked by uid 500); 23 Oct 2012 15:59:13 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 50518 invoked by uid 99); 23 Oct 2012 15:59:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2012 15:59:12 +0000 Date: Tue, 23 Oct 2012 15:59:12 +0000 (UTC) From: =?utf-8?Q?Felipe_Mart=C3=ADn_Santos_=28JIRA=29?= To: commits@cayenne.apache.org Message-ID: <1612833753.16472.1351007952721.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (CAY-1751) FK pointing to an UNIQUE field. Problems to insert registers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Felipe Mart=C3=ADn Santos created CAY-1751: ----------------------------------------- Summary: FK pointing to an UNIQUE field. Problems to insert re= gisters Key: CAY-1751 URL: https://issues.apache.org/jira/browse/CAY-1751 Project: Cayenne Issue Type: Improvement Components: Core Library, Database integration Affects Versions: 3.0.2 Environment: Eclipse + Java 5 + Junit + Cayenne 3.0.2 + Oracle 10g= Database Reporter: Felipe Mart=C3=ADn Santos Priority: Minor Fix For: 3.1 (final), 3.0.2 I need insert a new record and the table where insert have 2 FK not null: If I relate TABLE_A (FK) with TABLE_B (PK) Cayenne works well but if the r= elationship is between TABLE_A (FK) with TABLE_C (An UNIQUE field), cayenn= e can=C2=B4t extract de value of that UNIQUE value, and the insert sentence= generated live that field null and I get next error: java.sql.SQLIntegrityConstraintViolationException: ORA-01400. Can not perfo= rm an insert NULL -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira