• Post Reply Bookmark Topic Watch Topic
  • New Topic

Abstract Superclass DELETE not mapped error

 
Markus Schmider
Ranch Hand
Posts: 140
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

using hibernate-jpa-2.1-api 1.0.0.Final, hibernate-entitymanager 4.0.1.Final
I want to use an abstract superclass


When I run the named queries I get


How can I find all instances or delete all instances in this kind of class hierachy?

Thanks

Hans
 
Markus Schmider
Ranch Hand
Posts: 140
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK answer is
replace @MappedSuperclass with @Entity
MappedSuperclasses cannot be used in queries.

Question: Is there any advantage to use @MappedSuperclass instead of @Entity
 
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!