pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Andres Olarte <olarte.andres@gmail.com>
Cc: vasylenko@uksatse.org.ua
Cc: pgsql-jdbc@postgresql.org
Subject: Re:
Date: Wed, 10 Jan 2007 10:36:24 -0500
Message-ID: <635CFBA4-3FCD-4EAD-A444-7603F086CC3A@fastcrypt.com> (raw)
In-Reply-To: <3fccaa690701100626h57eb1aa3r8fd1b1de1c2e90b@mail.gmail.com>
References: <OF8BE49163.18F072B1-ONC225725F.0048EBCA-C225725F.0048F248@UKCC.UKSATSE>
	<4D21DDDA-29B1-43A1-BB50-838872BC20F3@fastcrypt.com>
	<3fccaa690701100626h57eb1aa3r8fd1b1de1c2e90b@mail.gmail.com>

Andres,

what he is looking for is to not have to select the id and still have  
the rowset work.

Dave
On 10-Jan-07, at 9:26 AM, Andres Olarte wrote:

> You can do the same with JDBC.  Don't set a value for your id column
> in the ResultSet.  The backend will do it for you.
>
> On 1/10/07, Dave Cramer <pg@fastcrypt.com> wrote:
>> What you are looking for is in hibernate, or some other high level
>> persistence framework . In JDBC you have to do all the work.
>>
>> Dave
>>
>> On 10-Jan-07, at 8:16 AM, vasylenko@uksatse.org.ua wrote:
>>
>> >
>> >
>> > Such declaration like this
>> >
>> > id int4 NOT NULL DEFAULT nextval('seq_group_id'::regclass)
>> > and
>> > CONSTRAINT i_group PRIMARY KEY (id)
>> >
>> > give me the oportumity don't bother about unique value of id
>> > and use another query.
>> >
>> > INSERT INTO  groups(g_name) VALUES("new group");
>> >
>> > I hope to find the same easy way in using ResultSet's objects (),
>> > i.e. to
>> > forget about id in my code until it nessesary for me and not for  
>> jdbc.
>> >
>> > ---------------------------(end of
>> > broadcast)---------------------------
>> > TIP 1: if posting/reading through Usenet, please send an  
>> appropriate
>> >        subscribe-nomail command to majordomo@postgresql.org so that
>> > your
>> >        message can get through to the mailing list cleanly
>>
>>
>> ---------------------------(end of  
>> broadcast)---------------------------
>> TIP 6: explain analyze is your friend
>>
>
> ---------------------------(end of  
> broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>               http://archives.postgresql.org
>




view thread (4+ messages)

Message-ID: <635CFBA4-3FCD-4EAD-A444-7603F086CC3A@fastcrypt.com>
Permalink:  ../635CFBA4-3FCD-4EAD-A444-7603F086CC3A@fastcrypt.com/
Also on:    postgresql.org/message-id/635CFBA4-3FCD-4EAD-A444-7603F086CC3A@fastcrypt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, olarte.andres@gmail.com, vasylenko@uksatse.org.ua
  Subject: Re: 
  In-Reply-To: <635CFBA4-3FCD-4EAD-A444-7603F086CC3A@fastcrypt.com>
  References: <OF8BE49163.18F072B1-ONC225725F.0048EBCA-C225725F.0048F248@UKCC.UKSATSE> <4D21DDDA-29B1-43A1-BB50-838872BC20F3@fastcrypt.com> <3fccaa690701100626h57eb1aa3r8fd1b1de1c2e90b@mail.gmail.com> <635CFBA4-3FCD-4EAD-A444-7603F086CC3A@fastcrypt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox