Re: Any other ROP examples?

2008-10-07 Thread Aristedes Maniatis
On 08/10/2008, at 3:59 AM, Demetrios Kyriakis wrote: Are there any ROP based projects that could be used as example? I mean some non-trivial examples (not like those from the SVN) I have a non-trivial ROP client/server desktop application. But unfortunately the source is not available at th

Re: Any other ROP examples?

2008-10-07 Thread Chris Murphy
Hi Demetrios, Well the JDO -> Cayenne convert I did is for an open source (at sourceforge) application. The latest source is in the sourceforge subversion repository for the strandz project. One of the ways it is non-trivial is that it uses Spring services that also transport back DOs. It re

Re: How to prevent Cayenne from fetching BLOB fields ?

2008-10-07 Thread Malcolm Edgar
One pattern we use to address this is to make a child table which contains the blob field and a parent foreign key. Its not ideal but it works. regards Malcolm Edgar On Wed, Oct 8, 2008 at 7:11 AM, Tore Halset <[EMAIL PROTECTED]> wrote: > Hello. > > On 7. okt.. 2008, at 18.37, Pierre Lavignotte

commit() when autocommit is enabled

2008-10-07 Thread Scott Anderson
I'm working on a path to add generated PK support to SQLite, but I've come across an issue with commit() - for some reason, autocommit is on, but Cayenne is still trying to call commit(), which causes an exception. An effective workaround is to re-check getAutoCommit() in ConnectionWrapper.commit()

Re: How to prevent Cayenne from fetching BLOB fields ?

2008-10-07 Thread Tore Halset
Hello. On 7. okt.. 2008, at 18.37, Pierre Lavignotte wrote: Thanks Scott. I didn't find this in the mail archive... Do you mean define an entity WITHOUT the BLOB fields, and another, pointing on the same table, WITH ONLY the BLOB fields ? I guess it will work but I thought there was a buil

Any other ROP examples?

2008-10-07 Thread Demetrios Kyriakis
Are there any ROP based projects that could be used as example? I mean some non-trivial examples (not like those from the SVN) Thank you, Demetrios.

Re: How to prevent Cayenne from fetching BLOB fields ?

2008-10-07 Thread Pierre Lavignotte
Thanks Scott. I didn't find this in the mail archive... Do you mean define an entity WITHOUT the BLOB fields, and another, pointing on the same table, WITH ONLY the BLOB fields ? I guess it will work but I thought there was a built in mechanism to handle the BLOB fields differently than the stand

RE: How to prevent Cayenne from fetching BLOB fields ?

2008-10-07 Thread Scott Anderson
Someone asked a similar question before - the clever solution was to map the field in the modeler as if it were part of a separate table. -Original Message- From: Pierre Lavignotte [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 12:26 PM To: user@cayenne.apache.org Subject: How

How to prevent Cayenne from fetching BLOB fields ?

2008-10-07 Thread Pierre Lavignotte
Hello, I use Apache Cayenne for a while now with no problem, but I went into a new issue today. I have an Oracle data table containing 2 BLOB fields. When I get the rows from this table, Cayenne also fetches the BLOB data, so the query is very long, or I get a time out exception. I tryed :

Re: Accepting DOs from a Spring service

2008-10-07 Thread Andrey Razumovsky
Hi Chris! I think you encountered bug that has already been fixed [1]. You can try last build instead of M4. [1]. https://issues.apache.org/cayenne/browse/CAY-1081 2008/10/7, Chris Murphy <[EMAIL PROTECTED]>: > > > I have a Swing application that is being converted from using JDO to using > Cayen

Accepting DOs from a Spring service

2008-10-07 Thread Chris Murphy
I have a Swing application that is being converted from using JDO to using Cayenne. It uses ROP and calls some Spring services. On the server WebApplicationContextFilter is being used. Some of the Spring services return more than just straightforward objects like Strings, they return DOs as w