Seam supports usage of JSF/JBoss-EL in queries.
See Seam reference section "8.5. Using EL in EJB-QL/HQL", for example:
User user = em.createQuery("from User where username=#{user.username}")
.getSingleResult();
This makes for nice, short, readable queries.
Unfortunately Idea currently does not parse the EL part, so it is also error prone (no validation while typing) and fragile (breaks when refactoring).
It would be great if Idea would understand this mixed HQL/EL and parse the EL as well.
Seam supports usage of JSF/JBoss-EL in queries.
See Seam reference section "8.5. Using EL in EJB-QL/HQL", for example:
User user = em.createQuery("from User where username=#{user.username}")
.getSingleResult();
This makes for nice, short, readable queries.
Unfortunately Idea currently does not parse the EL part, so it is also error prone (no validation while typing) and fragile (breaks when refactoring).
It would be great if Idea would understand this mixed HQL/EL and parse the EL as well.
Related:
IDEADEV-20744