openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danieldomingues86 <danieldomingue...@gmail.com>
Subject Error trying to use @OneToOne two-sided relationship
Date Thu, 10 Feb 2011 22:04:48 GMT

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.

Mime
View raw message