This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

AnnouncementAnnouncement Module

Collapse

No announcement yet.

SimpleJdbcTemplate - elegant way to get a List<String> from single column query?Page Title Module

SimpleJdbcTemplate - elegant way to get a List<String> from single column query?

Sep 15th, 2009, 04:35 PM

Hello,

Let's say I'm selecting a single column from many rows within a table using the SimpleJdbcTemplate. Is there an elegant way to get this as a List<String>? Usually I'd use a RowMapper but when it's just a string I wonder if there's a more elegant solution?