From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | vasylenko(at)uksatse(dot)org(dot)ua |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: |
Date: | 2007-01-10 13:32:30 |
Message-ID: | 4D21DDDA-29B1-43A1-BB50-838872BC20F3@fastcrypt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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(at)uksatse(dot)org(dot)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(at)postgresql(dot)org so that
> your
> message can get through to the mailing list cleanly
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Olarte | 2007-01-10 14:26:55 | Re: |
Previous Message | vasylenko | 2007-01-10 13:31:38 | Re: How to Insert the Row in ResultSet by moveToInsertRow() ... insertRow()? |