support "with" in dynamic restrictions
--------------------------------------
Key: JBSEAM-4335
URL:
https://jira.jboss.org/jira/browse/JBSEAM-4335
Project: Seam
Issue Type: Feature Request
Components: Framework
Affects Versions: 2.2.0.GA
Reporter: Daniel Tomsu
Priority: Minor
I would like the org.jboss.seam.framework.EntityQuery to understand WITH as a restriction,
right now only where is correctly understood.
This will lead to problems with outer joins where a constraint can not be expressed in a
where clause.
For example my EJBQL is:
select new entity.combined.EmployeePerformance(employee, performance) from Employee as
employee left outer join employee.performances as performance
my restrictions are:
with performance.process=#{processManager.currentProcess}
where (employee.id in (#{sessionView.employeeIds})
In my opinion there should be two restriction categories with and where, which both allow
EL expressions.
My quick fix was to form a dynamic EJBQL, dependent on the processManager, which concats
to the EJBQL the desired with expression.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira