As currentTime value is only known at runtime, i can;t specify it's value in mapping.
Using Filters, this problem can be resolved. Define filter, attach filter and enable filter. Filter supports specifying positional parameters value at runtime.
but i got 1 problem with filters :
Suppose i have 1 product with id as 100, it has 5 ProductNames..but when we apply filter only 2 productNames remains.
When i use just "inner join fetch" with no filters, it returns me one Product object which contains List of productNames properly
BUT When i use "select distinct product" and inner join fetch" with filter, it returns one product populated with productNames
list which contains 3 elements viz. null, first filtered productName, second filtered productName..
Why productNames list contains the first element as null? This seems to be a bug..
There were millions of the little blood suckers. But thanks to this tiny ad, I wasn't bitten once.
Devious Experiments for a Truly Passive Greenhouse!