You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "chainho (JIRA)" <ji...@apache.org> on 2014/03/26 11:10:14 UTC
[jira] [Updated] (OPENJPA-2485) @MapsId will replace the real
column in schema
[ https://issues.apache.org/jira/browse/OPENJPA-2485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
chainho updated OPENJPA-2485:
-----------------------------
Attachment: src.zip
source file
> @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
> Attachments: src.zip
>
>
> 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)