Thank you for your help.
1)
But if I use
Code:
criteria.add(Restrictions.eq("pod.display", Boolean.TRUE))
that is the same as
Code:
SELECT d.title, pod.definition
FROM
Demand d
LEFT OUTER JOIN price_of_demand pod
ON pod.demand_fxid = d.demand_pxid
WHERE pod.display IS TRUE
but it isn't the same as
Code:
SELECT d.title, pod.definition
FROM
Demand d
LEFT OUTER JOIN price_of_demand pod
ON pod.demand_fxid = d.demand_pxid
AND pod.display IS TRUE
2)
If I use
Code:
Criteria podCriteria = criteria.createCriteria("priceOfDemands");
podCriteria.add(Restrictions.eq("display", Boolean.TRUE));
that I can't use
Code:
projections.add(Projections.property("pod.definition"));
criteria.setProjection(projections);
because I have 2 different criteria (criteria, podCriteria) and how i use projections to 2 criterias?