Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » mapping file is resource in a dependency...eclipse complains
mapping file is resource in a dependency...eclipse complains [message #1698889] Thu, 18 June 2015 14:17 Go to next message
John J. Franey is currently offline John J. FraneyFriend
Messages: 31
Registered: July 2009
Member
I have one project with JPA entities and an orm.xml file.

I have another eclipse projects, depending on the first, with a persistence.xml file. This persistence.xml file identifies the above mapping-file.

Each is built into a separate jar file for deployment.

At deployment time, the JPA entity classes and the orm.xml file are resolved. They are both accessible to the classloader in use by the second jar.

In eclipse (luna), the JPA entities are resolved by the second project....however, the orm file cannot be found.

I've been overlooking this problem (false error) for a few years now (from 2012?) and would like to address it somehow.

Any ideas?

Thanks,
John
Re: mapping file is resource in a dependency...eclipse complains [message #1698899 is a reply to message #1698889] Thu, 18 June 2015 15:12 Go to previous messageGo to next message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Hi John,

If the main issue is the false error, your best bet is probably to just disable that error in the preferences. See Window->Preferences->Java Persistence->JPA->Errors/Warnings. The error you are seeing can probably be changed in the "Persistence Unit" section. You could ignore it, or set it to warning or info.

Other workarounds are probably more troublesome, so hopefully this would do what you need.

Neil
Re: mapping file is resource in a dependency...eclipse complains [message #1698906 is a reply to message #1698899] Thu, 18 June 2015 16:15 Go to previous message
John J. Franey is currently offline John J. FraneyFriend
Messages: 31
Registered: July 2009
Member
Thanks. This is workable.

Previous Topic:JPA Tools > Generate Entities from Tables, @Column strange format
Next Topic:Unable to add more than one Java Entity to diagram
Goto Forum:
  


Current Time: Thu Jun 21 16:31:07 GMT 2018

Powered by FUDForum. Page generated in 0.02325 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top