@Test
public void hhhXXXXTest() throws Exception {
try (Session s = openSession()) {
Query<AbstractEntity> query = s.createQuery(
"select t from org.hibernate.bugs.AbstractEntity t where t.foo = 1", AbstractEntity.class);
List<AbstractEntity> actual = query.getResultList();
assertThat(actual).isEmpty();
}
}