Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.eu.evaluation.server.dao.entity.space.station; import com.eu.evaluation.model.entity.space.station.StationOrg; import com.eu.evaluation.server.dao.AbstractDAO; import org.springframework.jdbc.core.namedparam.MapSqlParameterSource; import org.springframework.stereotype.Repository; /** * * @author dell */ @Repository public class StationOrgDAO extends AbstractDAO<StationOrg> { public int removeByPosition(String sysKey) { String sql = "delete from StationOrg t where t.position = :position"; MapSqlParameterSource params = new MapSqlParameterSource("position", sysKey); return this.remove(sql, params); } }