Re:
От | Andres Olarte |
---|---|
Тема | Re: |
Дата | |
Msg-id | 3fccaa690701100626h57eb1aa3r8fd1b1de1c2e90b@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: (Dave Cramer <pg@fastcrypt.com>) |
Ответы |
Re:
|
Список | pgsql-jdbc |
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 >
В списке pgsql-jdbc по дате отправления: