Persisting non-entity class that extends an entity (jpa) - example?
- by Michal Minicki
The JPA tutorial states that one can have a non-entity that extends entity class:
Entities may extend both entity and
non-entity classes, and non-entity
classes may extend entity classes. - http://java.sun.com/javaee/5/docs/tutorial/doc/bnbqa.html
Is it possible to persist such structure?
I want to do this:
@Entity
abstract class Test…