エラーHibernateの基準は、複数の投影これら3は、文字列型であるJPAエンティティのカスタムPOJO
Hibernate: select this_.UID as y0_, this_.PATH as y1_, this_.NAME as y2_ from AWARD this_ where this_.DELETED=?
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Boolean
休止状態コードに
criteria.add(Restrictions.eq("deleted", 0));
criteria.setProjection(Projections.projectionList().add(Projections.property("uid"))
.add(Projections.property("path")).add(Projections.property("name"))).
setResultTransformer(Transformers.aliasToBean(AwardsInSession.class));
List<AwardsInSession> la = criteria.list();
Custorm POJO
public class AwardsInSession extends BaseModel{
private String uid;
private String path;
private String name;
を結ん
はい、良い点です –