Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 37736 invoked from network); 26 Jul 2004 15:28:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Jul 2004 15:28:38 -0000 Received: (qmail 17379 invoked by uid 500); 26 Jul 2004 15:28:28 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 17316 invoked by uid 500); 26 Jul 2004 15:28:27 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 17196 invoked by uid 99); 26 Jul 2004 15:28:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [80.89.232.240] (HELO server.bizzdesign.nl) (80.89.232.240) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 26 Jul 2004 08:28:23 -0700 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Problems with extending classes X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Date: Mon, 26 Jul 2004 17:27:44 +0200 Message-ID: <5E091A68F794974CAF431CA31F5AF2CC1893D9@server.bizzdesign.nl> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problems with extending classes Thread-Index: AcRzFwI1bdPgcSKYT46NecyR5byKZgADd88w From: "Bart Molenkamp" To: "OJB Developers List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Also the example doesn't work. I get: org.apache.ojb.broker.PersistenceBrokerSQLException: Exist check failed for object org.apache.ojb.broker.B{3} when I try the sample. Is there anyone who got this sample working with either 1.0rc6 or 1.0.0? Bart. -----Original Message----- From: Bart Molenkamp=20 Sent: Monday, July 26, 2004 3:47 PM To: ojb-dev@db.apache.org Subject: Problems with extending classes Hello, I've a problem with extending classes. The "advanced technique" document describes three ways for mapping class hierarchies. I want to use the "Mapping Classes on Multiple Joined Tables" variant. My structure is pretty much the same as the one described in the "advanced technique" document, but it doesn't work. The exception I get is: org.apache.ojb.broker.KeyConstraintViolatedException: SQL failure while insert object data for class com.bizzdesign.persistence.impl.ojb.metamodel.DataTypeImpl, PK of the given object is [ name=3Dnull], object was com.bizzdesign.persistence.impl.ojb.metamodel.DataTypeImpl@3c8308, exception message is [Try to insert null into a non-nullable column in statement [INSERT INTO MetaDataTypes (name) VALUES (NULL) ]] What am I doing wrong? The repository_user.xml is specified below: Thanks in advance, Bart. --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org