I have a generic class which is a superclass of some non-generic class and those are just setting its generic parameter like this:
@ManagedProperty
class A<T>{
@Id
getId(){..}
setID(int id){..}
int id
T t;
T getT(){...}
setT(T t){...}
}
and
@Entity
class B extends A<Integer>{}
but I get MappingException which says:
It has an unbound type and no explicit target entity. Resolve this Generic usage issue or set an explicit target attribute.
how should I fix it?