openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <>
Subject Re: Question about orm.xml
Date Thu, 24 Oct 2013 20:43:17 GMT
I just came across this same problem earlier this week, but haven't gotten
annoyed enough yet to dig into it. My uneducated gut feeling is that the
problem is in the ReverseMappingTool.

On Thu, Oct 24, 2013 at 2:43 PM, Mark Struberg <> wrote:

> Looking at really old stuff atm which kind of randomly breaks tests.
> In this case it's the openjpa-persistence-jdbc TestUseSchemaElement which
> recently got added.
> This leaves a file 'orm.xml' on the root or openjpa-persistence-jdbc. And
> if you run the tests a second time, then the test above will fail.
> If you remove orm.xml then all is fine again.
> The orm.xml gets generated in PersistenceMetaDataFactory#defaultXMLFile()
> if no META-INF/orm.xml is found.
> This is really old stuff from the initial import...
> a.) return new File("orm.xml"); without any base directory is crap imo.
> This wont run well on a server.
> b.) orm.xml is absolutely optional nowadays
> It might also be only a problem in the ReverseMappingTool and other parts
> might not even use this anymore. Would need to dig deeper.
> Anyone has more info on this?
> LieGrue,
> strub
> PS: the tests currently fail in trunk and 2.3.x

*Rick Curtis*

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message