tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Updated] (TOMEE-2295) Persistence Unit mapping-file ignored by CmpJpaConversion
Date Thu, 29 Nov 2018 10:18:00 GMT


ASF GitHub Bot updated TOMEE-2295:
    Labels: pull-request-available  (was: )

> Persistence Unit mapping-file ignored by CmpJpaConversion
> ---------------------------------------------------------
>                 Key: TOMEE-2295
>                 URL:
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.7.5, 8.0.0-M1, 7.0.5, 7.1.0
>            Reporter: Jonathan Gallimore
>            Assignee: Jonathan Gallimore
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 8.0.0-Final, 1.7.6, 7.0.6, 7.1.1
> The CmpJpaConversion code enables TomEE to run CMP entity beans by converting them to
JPA "on the fly". It does this by using a persistence unit it creates on the app module named
"cmp", and generating an orm.xml file for the persistence component to use.
> However, if you create a persistence.xml file and a custom orm.xml file (using the `openejb.descriptors.output=true`
system property, for example) and reference the custom orm.xml in persistence.xml, it is
> One possible workaround is to remove the mapping file reference from persistence.xml
and package it in the artifact as META-INF/openejb-cmp-orm.xml (or WEB-INF/openejb-cmp-orm.xml
for .war files): [] and
> However, it should be possible to also check for the presence of an existing mapping
file on the cmp persistence unit, and use that as opposed to generating a new one.

This message was sent by Atlassian JIRA

View raw message