Du kan prøve at bruge en resultattransformer
List<User> users = session
.createQuery(
"SELECT userID as userID, firstName as firstName FROM Users WHERE emailID = :email_ID")
.setParameter("email_ID", emailID)
.setResultTransformer(new AliasToBeanResultTransformer(User.class)).list();
Du skal angive projektionsaliasser:firstName as firstName
, men du kan prøve uden.