Hello,
In my Mapping file I have this:
Code:
<set name="ranges" table="ranges" order-by="TIME_OF_CREATION desc" where="current > 0">
<key column="customerid"/>
<one-to-many class="Range"/>
</set>
Now I have a query where I want to ignore the
where attribute, so it should take all ranges. My query looks like this:
Code:
String hql = "from Customer as customer " +
"inner join customer.ranges as r " +
"Where r.from < :ordernumber " +
"And r.till > :ordernumber";
Now it doesn't return any results because current =0 for all ranges.
Is it possible to create a query ignoring the
where=
attribute?
Thanks for helping!