Michael Simons commented on an issue
Hibernate ORM / Bug HHH-7216
"java.lang.IllegalStateException: No supertype found" thrown on query with "COUNT" aggregate function
I have 2 entities:
{code}
@Entity
public class Transaction
{
@Id
@Column
private Integer trId;
...
}
{code}
{code}
@Entity
public class Form
{
@Id
@OneToOne
@JoinColumn( name = "trId" )
private Transaction transaction;

@Column
private String firstname;

...
}
{code}

And query:
{code}
private EntityManager em;
...
CriteriaBuilder cb = em.getCri...