openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chainho (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2485) @MapsId will replace the real column in schema
Date Wed, 26 Mar 2014 10:08:15 GMT
chainho created OPENJPA-2485:
--------------------------------

             Summary: @MapsId will replace the real column in schema
                 Key: OPENJPA-2485
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2485
             Project: OpenJPA
          Issue Type: Bug
            Reporter: chainho


I found an issue like this:
OpenJPA will use the value of MapsId annotation replace real column in schema. 
use the attach file "src.zip", run TestClient11.java, you will get the error message:
<openjpa-2.2.0-r422266:1244990 fatal general error> org.apache.openjpa.persistence.PersistenceException:
Unknown column 'empPK' in 'field list' {prepstmnt 14439476 INSERT INTO DID1bDependent (empPK,
name) VALUES (?, ?) [params=?, ?]} [code=1054, state=42S22]
FailedObject: com.sun.ts.tests.ejb30.persistence.derivedid.ex1b.DID1bDependent@cf7fd0

the empPK isn't the real column in schema, but it will used in sql statement





--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message