final String[] queries = {
"from " + I.class.getName(),
"from " + I.class.getName() + " where displayName is null",
"from " + I.class.getName() + " i",
"from " + I.class.getName() + " i where i.displayName is null",
"select i from " + I.class.getName() + " i",
"select i from " + I.class.getName() + " i where i.displayName is null",
"select displayName from " + I.class.getName(),
"select i.displayName from " + I.class.getName() + " i",
"select i.displayName from " + I.class.getName() + " i where i.displayName is null",
};
for (String query : queries) {
try (final var session = sessionFactory.openSession()) {
session.createQuery(query).list();
}
}