ææ°çã®Seasar2ã¨S2JDBC-Genã«ãã£ã¦ãã¿ã¤ãã»ã¼ããªãã¼ã¿ãã¼ã¹ããã°ã©ãã³ã°ãå¯è½ã«ãªã£ã¦ãã¾ãããããHibernateã¨æ¯è¼ããªããè¦ã¦ããã¾ãããã Hibernateã®å ãã¿ã¯ãã¡ãã Hibernate å ¥éè¨ ã¯ãªããªã¢ æåã¯åç´ãªLikeã使ãä¾ã Hibernateã¯ãããªãã¾ããExpression.*ãstaticã¤ã³ãã¼ããã¦ãã¾ãã session.createCriteria(Model.class) .add(like("name.firstName", "Yu%")) .list();ããã¾ã§ã®S2JDBCã ã¨ãããªæãã jdbcManager.from(Model.class) .where("name.firstName like ?", "Yu%") .getResultList()S2JDBCã®ã¿ã¤ãã»ã¼ããªæ¸ãæ¹ã ã¨ã¨ãããªãã¾
{{#tags}}- {{label}}
{{/tags}}