Hi Daniel,

In order to tell what's going on, it would be good to see some code. The classes on both sides of the relationship and the code that changes the relationship are the minimum needed to tell anything...

Except, of course, for the obvious. Have you mapped multiple fields to the same database column? Have you set both sides of the relationship?

Regards,

Craig

On Feb 10, 2011, at 2:04 PM, danieldomingues86 wrote:


Hi,

I found a error, trying to use a @OneToOne two-sided relation between
objects.

I get this error :
Attempt to set column "TB_SERVICES.CD_USER" to two different values:
(null)"null", (class java.lang.Integer)"55" This can occur when you fail to set both sides of a two-sided relation between objects, or when you map different fields to the same column, but you do not keep the values of these
fields in synch.

I tried many things and this is very strange, because this problem just
occurs with @OneToOne mapping.

Any Clue?
Regards,
Daniel.
--
View this message in context: 
http://openjpa.208410.n2.nabble.com/Error-trying-to-use-OneToOne-two-sided-relationship-tp6013705p6013705.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.

Craig L Russell
Architect, Oracle
http://db.apache.org/jdo
408 276-5638 mailto:[email protected]
P.S. A good JDO? O, Gasp!

Reply via email to