I use Eclipse 4.4.1 to generate metamodel for:
@Entity public class Parent { private Set<Child<?>> children; public Set<Child<?>> getChildren() { return children; } public void setChildren(Set<Child<?>> children) { this.children = children; } }
@Entity public class Child<T> { private T t; public T getT() { return t; } public void setT(T t) { this.t = t; } }
The generated Parent_.java contains the following error: T cannot be resolved to a type
@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") @StaticMetamodel(Parent.class) public abstract class Parent_ { public static volatile SetAttribute<Parent, Child<T>> children; }
@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") @StaticMetamodel(Child.class) public abstract class Child_ { public static volatile SingularAttribute<Child, Object> t; }