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:
Code:
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;
}
Any idea how to solve that or is this a bug that just needs to be fixed?
Thank you.
Best regards
Michael