• Post Reply Bookmark Topic Watch Topic
  • New Topic

Duplicate Entity class

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

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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!