Tiny fix for Dao.scala DetachedCriteria