您可以在Hibernate 5.2 +中使用以下接口:
javax.persistence.criteria.CriteriaBuilderjavax.persistence.criteria.CriteriaQuery// Create CriteriaBuilderCriteriaBuilder builder = session.getCriteriaBuilder();// Create CriteriaQueryCriteriaQuery<YourClass> criteria = builder.createQuery(YourClass.class);
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)