@Override
public TaxRate get(Integer taxRateId) {
String sql = "SELECT * FROM " +quoteTable("tax_rate")+ " WHERE tax_rate_id = ?";
TaxRate taxRate = getJdbcOperations().queryForObject(sql,
new Object[]{taxRateId}, new TaxRateRowMapper());
sql = "SELECT customer_group_id FROM "+quoteTable("tax_rate_to_customer_group")+ " WHERE tax_rate_id =?";
List<Integer> customerGroupIds = getJdbcOperations()
.queryForList(sql, Integer.class, taxRateId);
taxRate.setCustomerGroupIds(customerGroupIds);
return taxRate;
}