class SurrenderReasonJdbcRepository extends JdbcRepository {

    public SurrenderReasonEntity findById(SurrenderReasonEntity entity) {
        List<String> list = allIdentitiferFields.get(entity.getClass().getSimpleName());

        Map<String, Object> paramValues = new HashMap<>();

        for (String s : list)
            paramValues.put(s, getValue(getField(entity, s), entity));

        List<SurrenderReasonEntity> surrenderreasons = namedParameterJdbcTemplate.query(
                getByIdQuery.get(entity.getClass().getSimpleName()).toString(), paramValues,
                new BeanPropertyRowMapper(SurrenderReasonEntity.class));
        if (surrenderreasons.isEmpty())
            return null;
        else
            return surrenderreasons.get(0);

    }

    public  SurrenderReasonJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate);

}