Re: Selecting relationships without restriction

2011-11-06 Thread Aristedes Maniatis
On 7/11/11 3:04 AM, Christian Grobmeier wrote: Hi all, I have two tables Article and Price. The table Price can containt historic prices which should not be selected. I do something like that: Expression expression = ExpressionFactory.matchExp("prices.historic", false); Expression fullExp = ex

Re: Selecting relationships without restriction

2011-11-06 Thread Christian Grobmeier
Hi Joe, thanks for letting me know. This would be a killer feature. Cheers, Christian On Sun, Nov 6, 2011 at 5:35 PM, Joseph Senecal wrote: > Christian, > > There is no way that I know of to specify additional qualifiers to Cayenne's > built in relationships. The design is that getPrices shou

Re: Selecting relationships without restriction

2011-11-06 Thread Joseph Senecal
Christian, There is no way that I know of to specify additional qualifiers to Cayenne's built in relationships. The design is that getPrices should return all prices where Price.article field has been set to that article. What you can do is add your own method getCurrentPrices that returns all

Selecting relationships without restriction

2011-11-06 Thread Christian Grobmeier
Hi all, I have two tables Article and Price. The table Price can containt historic prices which should not be selected. I do something like that: Expression expression = ExpressionFactory.matchExp("prices.historic", false); Expression fullExp = expression.orExp(ExpressionFactory.matchExp("prices