title: Transform SQL to HQL with criteria nvl
body: <pre><code>(nvl(SELECT sum(wbs.days * 8 + wbs.hours)
  FROM com.vtradex.er.server.model.er.ProjectWbs wbs 
  WHERE wbs.project.id=erp.id
  AND wbs.user.id= 248 ),0)
  </code></pre>