Skip to main content



      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 10:17 Go to next message
Eclipse UserFriend
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 11:12 Go to previous messageGo to next message
Eclipse UserFriend
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 12:15 Go to previous message
Eclipse UserFriend
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: Tue Jul 15 01:13:54 EDT 2025

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

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

Back to the top