users@glassfish.java.net

Re: _at_many-to-one with composite key for multiple columns challenge..

From: <glassfish_at_javadesktop.org>
Date: Fri, 20 Apr 2007 15:42:06 PDT

The a database column (like TEST.VPD_ID) can not be mapped to two different relationships, because setting one relationship would (over-)write half of the foreign key of the other one. Meaning that updating one relationship could possibly modify another relationship mapped to the same column. JPA does not support this scenario.
[Message sent by forum member 'mf125085' (mf125085)]

http://forums.java.net/jive/thread.jspa?messageID=213502