select id returns null

Поиск
Список
Период
Сортировка
От prof_trg
Тема select id returns null
Дата
Msg-id 23473788.post@talk.nabble.com
обсуждение исходный текст
Список pgsql-jdbc
Hello,
I am using postgresql, and spring jdbc, and when I tried to execute a select
query :
Code:

 private SimpleJdbcTemplate template;
List<User> res = template.query("select * from user where id=?", MAPPER,
id);

I don't know why the returned id is null, I'd like to add that the id is of
type BIGSERIAL in postgresql, and I get it as Long in java.
I'd like to add that other fields are well selected except the id, so is the
issue related to the serial type?
Regards
--
View this message in context: http://www.nabble.com/select-id-returns-null-tp23473788p23473788.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: David Rees
Дата:
Сообщение: v604 in Maven
Следующее
От: Thomas Finneid
Дата:
Сообщение: COPY support: plan and progress