Re: Aries JPA 2.3.0: mapping file not used

2017-04-07 Thread Alex
I had the same issue too. I have reported it on JIRA Apache Aries: ARIES-1711 I hope this fix will be released as soo as possible. I added in the comments the solution for a fix. -- View this message in context:

Re: Aries JPA 2.3.0: mapping file not used

2016-08-19 Thread Christian Schneider
You are right. I just checked in the 1.x jpa code for that. Here is how it is done there: https://github.com/apache/aries/blob/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/parsing/impl/JPAHandler.java#L101-L102 Christian 2016-08-18 11:40 GMT+02:00 Timothy Ward

Re: Aries JPA 2.3.0: mapping file not used

2016-08-18 Thread Timothy Ward
That is exactly my point: https://github.com/apache/aries/blob/ebd8d1588b1a99d635bfc9c58fa72d7da1222a3e/jpa/jpa-container/src/main/java/org/apache/aries/jpa/container/parser/impl/JPAHandler.java#L68

Re: Aries JPA 2.3.0: mapping file not used

2016-08-18 Thread jochenw
The behavior is the same with Eclipselink (I just haven't adapted the tasklist example to Eclipselink - which I use in my application). Might the ORMs look for the default file orm.xml, and only need some configuration input when the filename is different, which Aries JPA does not handle?

Re: Aries JPA 2.3.0: mapping file not used

2016-08-17 Thread Tim Ward
The issue appears to be that Aries JPA has no code to handle the mapping files element of the persistence unit. As a result no mapping file names are passed to the JPA provider. I think this is an Aries issue. Tim Sent from my iPhone > On 17 Aug 2016, at 21:09, Christian Schneider

Re: Aries JPA 2.3.0: mapping file not used

2016-08-17 Thread Christian Schneider
Hmmm .. interesting. We do not have code in Aries JPA that specifically handles mapping files (as far as I know). So I wonder if this maybe is an issue in hibernate. Christian 2016-08-17 16:06 GMT+02:00 jochenw : > Hi Timothy, > > using the

Re: Aries JPA 2.3.0: mapping file not used

2016-08-17 Thread jochenw
Hi Timothy, using the tasklist-blueprint-cdi example (https://github.com/cschneider/Karaf-Tutorial/tree/master/tasklist-blueprint-cdi), I have exchanged H2 by PostgreSQL, added an orm.xml, exchanged the datasource configuration with one for a PostgreSQL DB, created a PostgreSQL DB named tasklist

Re: Aries JPA 2.3.0: mapping file not used

2016-08-15 Thread Timothy Ward
There was a major rewrite of Aries JPA between version 1.x and 2.x. It appears as though the mapping file support was lost (I can find no reference to mapping files in the parser). This is obviously something that needs to be fixed - is there any way that you can supply a simplified version of

Aries JPA 2.3.0: mapping file not used

2016-08-11 Thread jochenw
Hello, I have just switched from Aries JPA 1.0.4 to 2.3.0, used in combination with EclipseLink 2.6.1. With a H2 database, it works smoothly, and much better than with 1.0.4. However, I also have a PostgreSQL database where I have organized tables in several schemas. Typically I use a common