For those of us who want getters without the get-prefix (e.g. EOF fugitives)

2016-04-14 Thread Hugi Thordarson
Hi all, if you’d like to drop the “get"-prefix from your DataObject accessor methods, here’s a pom-file and a template to help. The pom/template combination generates a BeanInfo class for each entity that java reads to check the names of getter and setter methods. If you use this, Cayenne will f

Fwd: StoredProcedures and Cayenne

2016-04-14 Thread Fredrik Widengren
Reposting my question, just in case. -- Forwarded message -- From: Fredrik Widengren Date: 2016-04-14 22:17 GMT+02:00 Subject: StoredProcedures and Cayenne To: user@cayenne.apache.org Hello, I'm trying to launch a stored procedure which is returning rows with a number of column

StoredProcedures and Cayenne

2016-04-14 Thread Fredrik Widengren
Hello, I'm trying to launch a stored procedure which is returning rows with a number of columns. I try to follow the documentation but don't understand why I get these errors. As you can see, the text "After query" is not printed in the log. Which I then assume mean that something goes wrong in

Re: Does Cayenne 4.0.3M work on JellyBean 4.0?

2016-04-14 Thread John Huss
Here is the Cayenne issue about Android support. You can follow those steps to get a working version. I only tried using ROP to access a remote server, but accessing a local database should work too. https://issues.apache.org/jira/browse/CAY-1604 John On Tue, Apr 12, 2016 at 7:16 AM Andrus Ada

Re: How to execute a stored procedure as part of a commitChanges?

2016-04-14 Thread Michael Gentry
Not completely germane to the discussion, but keep in mind that modifiedObjects() can return far more objects than you expect since it includes all phantom changes: user.gerFirstName() => "John" user.setFirstName("John") => Modified Object/Phantom Change These types of phantom changes happen quit

Re: Fetching a list of objects from a list of primary keys

2016-04-14 Thread Hugi Thordarson
Great, thanks! - hugi > On 14. apr. 2016, at 08:50, Andrus Adamchik wrote: > > Here is a shorter version: > > ExpressionFactory.inDbExp( User.ID_PK_COLUMN, 1, 2, 3) > >> On Apr 14, 2016, at 11:15 AM, Hugi Thordarson wrote: >> >> Ah, of course, I can qualify on the DB path even if “id” is

Re: Fetching a list of objects from a list of primary keys

2016-04-14 Thread Andrus Adamchik
Here is a shorter version: ExpressionFactory.inDbExp( User.ID_PK_COLUMN, 1, 2, 3) > On Apr 14, 2016, at 11:15 AM, Hugi Thordarson wrote: > > Ah, of course, I can qualify on the DB path even if “id” is not a class > attribute. Is this the correct way to go about this? > > new ASTIn( new ASTDbP

Re: Query Isolation - Dirty Reads

2016-04-14 Thread Malcolm Edgar
Thank you much appreciated. regards Malcolm On Thu, Apr 14, 2016 at 4:42 PM, Andrus Adamchik wrote: > Hi Malcolm, > > Yeah, going to the connection level is probably the way to solve this. You > will need to wrap your commit / select code in a manual transaction, which > is fairly easy in 4.0 [

Re: Fetching a list of objects from a list of primary keys

2016-04-14 Thread Hugi Thordarson
Ah, of course, I can qualify on the DB path even if “id” is not a class attribute. Is this the correct way to go about this? new ASTIn( new ASTDbPath( User.ID_PK_COLUMN ), new ASTList( someListOfIDs() ) ) Thanks, - hugi > On 14. apr. 2016, at 06:34, Andrus Adamchik wrote: > > Actually a sim