RefreshQuery

2006-09-21 Thread Marcin Skladaniec
Hello I'm performing refresh query like this: new RefreshQuery(new String[] {I:some_package_SomeClass.*} ) and after that SelectQuery with name I:some_package_SomeClass:someField, but the result records aren't as expected. (someField indicates ordering) Using RefreshQuery(query) or

Re: RefreshQuery

2006-09-21 Thread Andrus Adamchik
Hi Marcin, RefreshQuery built that way, unlike its predecessor InvalidateListCacheQuery, doesn't do pattern matching on the names. This was a bit inefficient. Instead it does exact match on the cache group names. One or more cache groups are assigned explicitly by a user of the original

Re: PostgreSQL interval type handling?

2006-09-21 Thread Andrus Adamchik
Hi Arturo, Yes, you'd need a custom ExtendedType to handle that. Those work just fine. So as long as you can figure out how to read and write interval via JDBC, you should be fine. Andrus On Sep 20, 2006, at 11:20 PM, Arturo PĂ©rez wrote: Hi all, I would like to use the PostgreSQL

Timestamps not working for me in PostgreSQL 8.0

2006-09-21 Thread Chris Poulsen
Hi guys, I've been having some trouble with subj, I hope someone have an reasonable explaination. :) I've generated both my classes and db schema using the v1.2 modeller. The problem is that when I try to access a field in the generated class I get a class cast exception in the getter below:

Re: Timestamps not working for me in PostgreSQL 8.0

2006-09-21 Thread Andrus Adamchik
Yes, java.util.Date is Cayenne default mapping for the date types, so if there are no other hints in the query, this is what Cayenne will use. The type of fromDate is java.util.Date - I'm not even able to select that type in the modeller Actually you can - you should type java.util.Date