Hello Peter,

> -----Original Message-----
> From: Peter Klassen [mailto:[EMAIL PROTECTED]

> Hi, i'm in trouble with a painful occurence ;0)
> 
> try to create a rowset with the OJBPersistenceBroker. There 
> is char-field
> named 'languageID', which is a foreign-key. OJB returns with 
> the following
> message:
> 
> ORA-01400: cannot insert NULL into ("GECO"."BRANCH"."LANGUAGE_ID")
> 
> java.sql.SQLException: ORA-01400: cannot insert NULL into
> ("GECO"."BRANCH"."LANGUAGE_ID")

o.k., I do not know about oracle, but it seems that an attempt
has been made to write a null into a non-nullable column.

For example, that can be the case if you have several classes mapped to
the same table and you insert an instance that does not have
any field mapped to that column.

Please find out (by using P6Spy) what the offending SQL 
statement is. Then find out what the values of the
fields of the object being written are.

Then we can see if this is a bug.

Possible workaround: make that column nullable or specify a
database default.

Olli

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to