aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Liepold (JIRA)" <>
Subject [jira] [Created] (ARIES-1711) Mapping files in persistence.xml not used
Date Fri, 07 Apr 2017 11:15:42 GMT
Alexander Liepold created ARIES-1711:

             Summary: Mapping files in persistence.xml not used
                 Key: ARIES-1711
             Project: Aries
          Issue Type: Bug
          Components: JPA
    Affects Versions: jpa-2.7.0, jpa-2.6.1
         Environment: Apache Aries 2.6.1
Hibernate 5.0.7.Final
Felix 5.6.1
JPA 2.1
            Reporter: Alexander Liepold
             Fix For: jpa-2.7.0

The mapping files in a PeristenceUnit are not used by Apache Aries.
The same issue was noticed at this thread:

I have the same problem and I found out that the use of a mapping file in a persistence.xml
works only on particular circumstances.

For example if I use the following declaration of a persistence.xml :
<?xml version="1.0" encoding="UTF-8"?>
<persistence ...
	<persistence-unit name="jpa.customer"





On deployment of this persistence-unit the class {{test.Customer}} gets bootstrapped from
Hibernate. The mapping file {{META-INF/orm.xml}} is detected automatically from the persistence
But the mapping file {{META-INF/developer-orm.xml}} is never detected.
If I fixed the particular code in the module Aries JPA Container locally and build the Aries
bundles I got it to work.

This message was sent by Atlassian JIRA

View raw message