• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

OpenJPA Build time Enhancement & Maven dependencies, persistence.xml

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thought I'd try this here because you generally get responses quicker than at the actual products forums.

I'm starting to work on a new project that is broken up into separate Maven projects. (Bear w/ me, not THAT familiar w/ Maven yet.) The web project will be built with dependencies to one or more projects containing entity objects. It is clear from the documentation that you can specify paths to classes that you want enhanced at build time.
<configuration>
<includes>**/entities/*.class</includes>

But if I understand correctly, it will also do enhancement on classes in your persistent class list, which should also include ones in jars specified in persistence.xml w/ jar-file*.
1) I'm not sure if that is ONLY when you don't specify anything in the POM.
2) Primarily, I'm not sure how to specify the path of the jar in persistence.xml

I'm sure I'm not trying to do something that is uncommon. So basically what I need to do is enhance entities pulled in as dependencies to a project configured for OpenJPA.

Thanks for any assistance.
 
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic