Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

openjpa, annotations and entity names

 
Wendy Gibbons
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have my entity as this:



and my persistance.xml


now the bean is in a seperate package from the main webpage and persistence.xml
if i build a jar of the bean package and include it i WebContent/WEB-INF/lib everything works fine

but if i use the build path and the "Java EE Module Dependencies" to include the bean package i get this error message:


why is it reverting to reflection and ignoring my annotations?
 
Wendy Gibbons
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i found the trouble was the project my beans were in was "byte enhanced" why should that cause a problem?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!