[
https://issues.apache.org/jira/browse/OPENJPA-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696845#action_12696845
]
Oleg Zenzin commented on OPENJPA-1019:
--------------------------------------
We need this fix pretty soon, so I'm commited to try to fix it and check-in
into version 1.2.0 or 1.1.0 if anyone could point me where should I look to in
sources.
> orm.xml does not override annotations
> -------------------------------------
>
> Key: OPENJPA-1019
> URL: https://issues.apache.org/jira/browse/OPENJPA-1019
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 1.1.0
> Environment: OpenJPA 1.1.0, DBMS Embedded Derby 10.2.2.0
> Reporter: Oleg Zenzin
> Attachments: openjpa.test.zip
>
>
> I need to use both annotations and orm.xml to sometimes override mapping
> defined with annotations in the compiled file. According to manual:
> Persistence metadata is specified using either the Java 5 annotations defined
> in the javax.persistence package, XML mapping files, or a mixture of both. In
> the latter case, XML declarations override conflicting annotations.
> I have created and attached test case where I use orm.xml to override a
> column name: class org.intalio.tempo.workflow.task.Task has field _id which
> is mapped to column "TID" by use of annotations. In file orm.xml I map this
> same field to column "ITD" and expect OpenJPA to create DB schema accordingly
> (openjpa.jdbc.SynchronizeMappings=buildSchema). But my test shows that it
> does not happen, i.e. mapping defined in orm.xml does not impact or override
> mapping defined with annotations.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.