标签: sql hibernate hql
(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)
答案 0 :(得分:0)
创建将执行此查询并通过@Formula注释将其映射到某个属性的存储过程会更容易。
@Formula