Hello,

I have a db foreign key pointing to a Unique key and not a Primary key of
the referenced table,
Tried column reference but it does not work.
At the time of the insert on the child record, the INSERT statement shows
that it is trying to insert the primary key of the referenced table. 
The PK is int where as the unique key is a varchar, so it naturally bombs.

Is there  away to deal with this scenario or it is not valid for JPA/OPEN
JPA via the relationships.

Regards'- Anu

--
View this message in context: 
http://openjpa.208410.n2.nabble.com/Foreign-key-to-Unique-Key-Not-working-tp7580216.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to