Hibernate doesn't support accessing fields on usertypes for projection criterias?
问题 My Classes: public class User { @Type(type="AccountType") private AccountType accountType; } public class AccountType { private String name; private AccountType(String name) { this.name = name; } public static AccountType User = new AccountType("User"); public static AccountType Administrator = new AccountType("Administrator"); } I also have a properly setup AccountTypeUserType. My Query: List results = session.createCriteria(User.class) .setProjection(Projections.projectionList() .add