Re: How do you update a record with apache cayenne without using select clause

2015-09-11 Thread Andrus Adamchik
> On Sep 11, 2015, at 6:32 PM, Dipesh Jain wrote: > > I am using apache cayenne 3.1. I know of one way to update records in the > database is to first use select query to find record and then update it, > but I don't want to use a select query for updating. How can I directly

Re: Anyone using Cayenne with Informix?

2015-09-11 Thread Hugi Thordarson
Thanks Andrus. I’m going to try this out. - hugi > On 11. sep. 2015, at 10:34, Andrus Adamchik wrote: > > Haven't seen anything Informix-related popping up on this list for some time. > But if it has a decent JDBC driver, most things should just work. Most > adapter

Re: Switching to Java 1.7

2015-09-11 Thread Hugi Thordarson
Awesome :) - hugi > On 11. sep. 2015, at 10:33, Andrus Adamchik wrote: > > FYI. Feel free to comment. > >> Begin forwarded message: >> >> From: Andrus Adamchik >> Subject: Switching to Java 1.7 >> Date: September 7, 2015 at 10:13:46 AM GMT+3

Fwd: Switching to Java 1.7

2015-09-11 Thread Andrus Adamchik
FYI. Feel free to comment. > Begin forwarded message: > > From: Andrus Adamchik > Subject: Switching to Java 1.7 > Date: September 7, 2015 at 10:13:46 AM GMT+3 > To: d...@cayenne.apache.org > Reply-To: d...@cayenne.apache.org > > So one final reminder that we are

Anyone using Cayenne with Informix?

2015-09-11 Thread Hugi Thordarson
Hi all. I’m starting work on a (somewhat technologically dated) project that uses Informix. I see it’s not on the list of officially supported DBs, just wondering if anyone has attempted to use it with Cayenne? - hugi

Re: Anyone using Cayenne with Informix?

2015-09-11 Thread Andrus Adamchik
Haven't seen anything Informix-related popping up on this list for some time. But if it has a decent JDBC driver, most things should just work. Most adapter customizations for other DBs are dealing with edge cases, stored procedures, driver metadata capabilities and such. Andrus > On Sep 11,

Re: Query at the time of inserting data using Apache Cayenne

2015-09-11 Thread Dipesh Jain
I have tried to implement @Aristedes Maniatis answer but still result was same. I want to know why and how apache cayenne is doing this. I do not want the solution because I already have the answer. On Wed, Sep 9, 2015 at 9:41 PM, Dipesh Jain wrote: > I have written a code in

How do you update a record with apache cayenne without using select clause

2015-09-11 Thread Dipesh Jain
I am using apache cayenne 3.1. I know of one way to update records in the database is to first use select query to find record and then update it, but I don't want to use a select query for updating. How can I directly update the record? I do not want to use EJBQLQuery or SQL TEMPLETE. -- Thanks

Re: How do you update a record with apache cayenne without using select clause

2015-09-11 Thread Aristedes Maniatis
On 12/09/2015 1:32am, Dipesh Jain wrote: > I am using apache cayenne 3.1. I know of one way to update records in the > database is to first use select query to find record and then update it, > but I don't want to use a select query for updating. How can I directly > update the record? I do not

Re: Query at the time of inserting data using Apache Cayenne

2015-09-11 Thread Andrus Adamchik
Ari's example was idiomatic Cayenne, even though it did not contain the solution. I.e. it is generally a good idea to create and register a new object in one place with context.newObject(..), before you start modifying object properties. Anyways... >> I have solved the problem by changing my