File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes How to query using NamedParameterJdbcTemplate.query() method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to query using NamedParameterJdbcTemplate.query() method?" Watch "How to query using NamedParameterJdbcTemplate.query() method?" New topic
Author

How to query using NamedParameterJdbcTemplate.query() method?

antsi klando
Ranch Hand

Joined: May 10, 2011
Posts: 46
I am not able to fetch two column values from the Database.

PFB the code



where the sql query is "select po_no, created_dtm from purchase_order where cust_order_no =765765878"
outputKeyNames = [poNumber, created_dtm].

The problem is that it fetches the poNumber for the first time.For the created_dtm it returns null.

Please suggest a method.
shai ban
Ranch Hand

Joined: Jan 05, 2010
Posts: 177
Check the date format/timezone in db.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to query using NamedParameterJdbcTemplate.query() method?