RE: primary key field null after update

2006-04-05 Thread Manukyan, Sergey

Hi, make sure you have correctly defined the primary keys...

Sergey


-Original Message-
From: Guido Beutler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 8:42 AM
To: ojb-user@db.apache.org
Subject: primary key field null after update

Hi,

I am using OJB 1.0.4 inside of jboss 3.2.5.
I updated from OJB 1.0.0 to 0.4 .

Now I am running is a strange problem which did not occur in 1.0.0.
When I update a object the primary key field is null after the store
although the update is executed and succeed.
The update sql statement  is executed correctly, only the pk field at
the value object is null after returning from ojb.

When I insert a object of the same type with a null value at the primary
ey field the sequence fills the
field correctly and the primary key field at the object ist set
correctly.
The object has many references which have autoload and refresh set to
true but auto update set to false.

Has anybody seen this before?

Thanks in advance,

Guido

**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain
legally privileged, confidential or proprietary
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of
this message to the intended recipient(s), you are
hereby notified that any dissemination, distribution
or copying of this E-mail message is strictly
prohibited. If you have received this message in
error, please immediately notify the sender and
delete this E-mail message from your computer.

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



primary key field null after update

2006-04-05 Thread Guido Beutler
Hi,

I am using OJB 1.0.4 inside of jboss 3.2.5.
I updated from OJB 1.0.0 to 0.4 .

Now I am running is a strange problem which did not occur in 1.0.0.
When I update a object the primary key field is null after the store although 
the update is executed and succeed.
The update sql statement  is executed correctly, only the pk field at the value 
object is null after returning from ojb.

When I insert a object of the same type with a null value at the primary ey 
field the sequence fills the
field correctly and the primary key field at the object ist set correctly.
The object has many references which have autoload and refresh set to true but 
auto update set to false.

Has anybody seen this before?

Thanks in advance,

Guido