Description:
|
I'd like to generate the meta model for the following entity, that is a generic abstract class:
{code}
import javax.persistence.Entity; import javax.persistence.GenerationType;
@Entity public abstract class HelloWorld<T> {
@javax.persistence.Id @javax.persistence.GeneratedValue(strategy = GenerationType.IDENTITY) Long id;
}
The model is generated successfully, but the resulting class is not generic. The "<T>" is missing:
import javax.annotation.Generated; import javax.persistence.metamodel.SingularAttribute; import javax.persistence.metamodel.StaticMetamodel;
@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor") @StaticMetamodel(HelloWorld.class) public abstract class HelloWorld_ {
public static volatile SingularAttribute<HelloWorld, Long> id;
}
{code}
|