Queryq=entityManager.createQuery("select tl from TemplateLabel tl left join tl.template t where t.id = :templateId and tl.unitId = :unitId order by tl.position asc");
Queryq=entityManager.createQuery("select tl from TemplateLabel tl left join tl.template t where t.code = :templateCode and tl.unitId = :unitId order by tl.position asc");
q.setParameter("template.id",templateId);
q.setParameter("templateCode",templateCode);
q.setParameter("unitId",unitId);
returnq.getResultList();
...
...
@@ -36,9 +36,9 @@ public class CustomizableLabelsRepository extends AbstractHibernateRepository {