2013年02月13日21:20 カテゴリPlay framework Play framework 2.0 RawSql 今日も懲りずにPlay Framework 2.0.4 ある程度複雑なSQLを書き出すと、@EntityやFinderだけでは書ききれなくなる。 そもそもor条件書けないし・・・ そういう場合に使用するのはRawSql String sql = "SELECT" + " manage_id" + ", count(a.manage_id) as cntTotal" + ", count(case when a.status = 2 then 1 end) as cntCompleted" + " FROM dat_result a" + " INNER JOIN mst_xxx b on b.manage_id = a.manage_id" ; のようなSQ