@Override protected MapSqlParameterSource createFullParametersMapper(IscsiBond iscsiBond) { return createIdParameterMapper(iscsiBond.getId()) .addValue("name", iscsiBond.getName()) .addValue("description", iscsiBond.getDescription()) .addValue("storage_pool_id", iscsiBond.getStoragePoolId()); }
@Override public IscsiBond mapRow(ResultSet rs, int rowNum) throws SQLException { IscsiBond entity = new IscsiBond(); entity.setId(getGuid(rs, "id")); entity.setDescription(rs.getString("description")); entity.setName(rs.getString("name")); entity.setStoragePoolId(getGuidDefaultNewGuid(rs, "storage_pool_id")); return entity; }