select id returns null

prof_trg <[email protected]>
Newsgroups gmane.comp.java.springframework.user
Message-ID <[email protected]>
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 I
think the issue related to spring query, should I add some thing?

Regards 
-- 
View this message in context: http://www.nabble.com/select-id-returns-null-tp23485931p23485931.html
Sent from the springframework-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.