String sql = "SELECT DISTINCT *, (SELECT keyword FROM " +quoteTable("url_alias")
+ " WHERE query = ?) AS keyword FROM "
+ quoteTable("information")+" WHERE information_id = ?";
InformationForm infoForm = (InformationForm)getJdbcOperations().queryForObject(
sql, new Object[]{"information_id="+infoId, infoId},
new InformationRowMapper(){
@Override
public Information mapRow(ResultSet rs, int rowNum)
throws SQLException {
InformationForm form = (InformationForm)super.mapRow(rs, rowNum);
form.setKeyword(rs.getString("keyword"));