Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Duplicate Entity class  RSS feed

 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
I am facing a problem in JPA. I have duplicate classes with the same name in different pkg. When I try mapping ,say, Animal class. JPA tell me dulplicate classes are found and throw exception.
I think that might be because of automatic import feature in JPA. Please , somebody help me solve this problem when you are free.

this is my persistence xml file



Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!