Re: EJBQL: Fetch joins are not yet supported.

2008-03-25 Thread Mike Kienenberger
Your other short-term option is to use an SQLTemplate() On 3/25/08, Laszlo Sas <[EMAIL PROTECTED]> wrote: > Hello, > > I want to use left join fetch, but currently Cayenne throws the > following Exception: > > java.lang.UnsupportedOperationException: Fetch joins are not yet supported > > Does

Re: EJBQL: Fetch joins are not yet supported.

2008-03-25 Thread Mike Kienenberger
Laszlo, CAY-560 is where you can find the patch. I'm not using Cayenne 3 yet, so it's only available for 1.2 and 2.0. Not sure how hard it would be to migrate the 2.0 patches to 3.0. On 3/25/08, Andrus Adamchik <[EMAIL PROTECTED]> wrote: > > On Mar 25, 2008, at 5:31 PM, Andrus Adamchik wrote: >

Re: Thread-safe Write DataContext

2008-03-25 Thread Mike Kienenberger
Why not create a new DataContext when you need to do write operations? On 3/25/08, Laurent Marchal <[EMAIL PROTECTED]> wrote: > Hi all ! > > I spent some time searching documentation about the thread-safety status > of DataContext, i found some answers on this mailing list but i would > like to

Re: DataObjectUtils.objectForPK

2008-03-25 Thread Malcolm Edgar
Hi All, The resolution to this issue for me was: dataObject = (DataObject) DataObjectUtils.objectForQuery(getDataContext(), new ObjectIdQuery(objectId, false, ObjectIdQuery.CACHE)); Should I raise a bug on this issue? regards Malcolm Edgar On Wed, Mar 26, 2008 at 11:04 AM, Malcolm Edgar <[

DataObjectUtils.objectForPK

2008-03-25 Thread Malcolm Edgar
Hi All, I have been having issues with using Cayenne 3.0M3 DataObjectUtils method objectForPK(ObjectContext, Class, Object) Caused by: java.lang.NoSuchMethodError: org.apache.cayenne.DataObjectUtils.objectForPK(Lorg/apache/cayenne/ObjectContext;Ljava/lang/Class;Ljava/lang/Object;)Lorg/apache/caye

Thread-safe Write DataContext

2008-03-25 Thread Laurent Marchal
Hi all ! I spent some time searching documentation about the thread-safety status of DataContext, i found some answers on this mailing list but i would like to know some details : I have a big application (Eclipse RCP based) which monitors a database, so i have to poll the database each 10 s

Re: EJBQL: Fetch joins are not yet supported.

2008-03-25 Thread Laszlo Sas
Very promising. :) Thanks, Laszlo Andrus Adamchik írta: Almost everything is supported. What's missing is this: fetch joins, constructors in SELECT, and probably a few more edge cases that we are discovering as we go during testing.

Re: EJBQL: Fetch joins are not yet supported.

2008-03-25 Thread Andrus Adamchik
On Mar 25, 2008, at 5:42 PM, Laszlo Sas wrote: Hello Andrus, Ok. No timelines. :) Can you post me a thread which explains the current support? Almost everything is supported. What's missing is this: fetch joins, constructors in SELECT, and probably a few more edge cases that we are disc

Re: EJBQL: Fetch joins are not yet supported.

2008-03-25 Thread Laszlo Sas
it 100%. If you are asking about timelines - no, we will not give you any. Cheers, Andrus _ NOD32 2971 (20080325) Információ _ Az üzenetet a NOD32 antivirus system megvizsgálta. http://www.nod32.hu

Re: EJBQL: Fetch joins are not yet supported.

2008-03-25 Thread Andrus Adamchik
On Mar 25, 2008, at 5:31 PM, Andrus Adamchik wrote: Does Cayenne support outer joins (I think about a non-EJBQL support)? Yes, but not the fetch joins. Sorry... non-EJBQL queries (i.e. SelectQuery) does not support outer joins (there are some patches in Jira to support that, but they are

Re: EJBQL: Fetch joins are not yet supported.

2008-03-25 Thread Andrus Adamchik
Hi there, On Mar 25, 2008, at 5:28 PM, Laszlo Sas wrote: Hello, I want to use left join fetch, but currently Cayenne throws the following Exception: java.lang.UnsupportedOperationException: Fetch joins are not yet supported Does Cayenne support outer joins (I think about a non-EJBQL su

EJBQL: Fetch joins are not yet supported.

2008-03-25 Thread Laszlo Sas
Hello, I want to use left join fetch, but currently Cayenne throws the following Exception: java.lang.UnsupportedOperationException: Fetch joins are not yet supported Does Cayenne support outer joins (I think about a non-EJBQL support)? Do you have a roadmap for EJBQL? Thanks, Laszlo

Re: Cayenne 3.0M3 and NamedQueries

2008-03-25 Thread Andrus Adamchik
Hmm... since we were not aware of the original problem, I can't really tell whether this works in 3.0. Andrus On Mar 25, 2008, at 4:34 AM, Malcolm Edgar wrote: Hi All, I have been upgrading an Cayenne 1.2 project to 3.0M3. I wanted to know if some behaviour has changed. I have had an issu