Daniel Erez has uploaded a new change for review. Change subject: core: normalize capitalization of lun_id column ......................................................................
core: normalize capitalization of lun_id column Normalize to 'lun_id' in the relevant DAOs for accommodating with the naming in 'luns' table Change-Id: I533df11f2a5ef52920af4f5ce029f31d83f9c492 Signed-off-by: Daniel Erez <[email protected]> --- M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/LunDAODbFacadeImpl.java M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/StorageServerConnectionLunMapDAODbFacadeImpl.java 2 files changed, 9 insertions(+), 9 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/13/24513/1 diff --git a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/LunDAODbFacadeImpl.java b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/LunDAODbFacadeImpl.java index f20ed49..ef5194d 100644 --- a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/LunDAODbFacadeImpl.java +++ b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/LunDAODbFacadeImpl.java @@ -25,7 +25,7 @@ @Override public LUNs mapRow(ResultSet rs, int rowNum) throws SQLException { LUNs entity = new LUNs(); - entity.setLUN_id(rs.getString("LUN_id")); + entity.setLUN_id(rs.getString("lun_id")); entity.setphysical_volume_id(rs.getString("physical_volume_id")); entity.setvolume_group_id(rs.getString("volume_group_id")); entity.setSerial(rs.getString("serial")); @@ -47,7 +47,7 @@ @Override public LUNs get(String id) { MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource() - .addValue("LUN_id", id); + .addValue("lun_id", id); return getCallsHandler().executeRead("GetLUNByLUNId", MAPPER, parameterSource); } @@ -80,7 +80,7 @@ @Override protected MapSqlParameterSource createIdParameterMapper(String id) { - return getCustomMapSqlParameterSource().addValue("LUN_id", id); + return getCustomMapSqlParameterSource().addValue("lun_id", id); } @Override @@ -91,7 +91,7 @@ @Override public void save(LUNs lun) { MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource() - .addValue("LUN_id", lun.getLUN_id()) + .addValue("lun_id", lun.getLUN_id()) .addValue("physical_volume_id", lun.getphysical_volume_id()) .addValue("volume_group_id", lun.getvolume_group_id()) .addValue("serial", lun.getSerial()) @@ -106,7 +106,7 @@ @Override public void update(LUNs lun) { MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource() - .addValue("LUN_id", lun.getLUN_id()) + .addValue("lun_id", lun.getLUN_id()) .addValue("physical_volume_id", lun.getphysical_volume_id()) .addValue("volume_group_id", lun.getvolume_group_id()) .addValue("serial", lun.getSerial()) @@ -121,7 +121,7 @@ @Override public void remove(String id) { MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource() - .addValue("LUN_id", id); + .addValue("lun_id", id); getCallsHandler().executeModification("DeleteLUN", parameterSource); } diff --git a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/StorageServerConnectionLunMapDAODbFacadeImpl.java b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/StorageServerConnectionLunMapDAODbFacadeImpl.java index defb371..ac98476 100644 --- a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/StorageServerConnectionLunMapDAODbFacadeImpl.java +++ b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/StorageServerConnectionLunMapDAODbFacadeImpl.java @@ -29,7 +29,7 @@ @Override public LUN_storage_server_connection_map mapRow(ResultSet rs, int rowNum) throws SQLException { LUN_storage_server_connection_map entity = new LUN_storage_server_connection_map(); - entity.setLunId(rs.getString("LUN_id")); + entity.setLunId(rs.getString("lun_id")); entity.setstorage_server_connection(rs.getString("storage_server_connection")); return entity; } @@ -37,7 +37,7 @@ @Override public LUN_storage_server_connection_map get(LUN_storage_server_connection_map_id id) { - MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource().addValue("lUN_id", id.lunId).addValue( + MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource().addValue("lun_id", id.lunId).addValue( "storage_server_connection", id.storageServerConnection); return getCallsHandler().executeRead("GetLUN_storage_server_connection_mapByLUNBystorage_server_conn", @@ -47,7 +47,7 @@ @Override public void save(LUN_storage_server_connection_map map) { - MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource().addValue("lUN_id", map.getLunId()) + MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource().addValue("lun_id", map.getLunId()) .addValue("storage_server_connection", map.getstorage_server_connection()); getCallsHandler().executeModification("InsertLUN_storage_server_connection_map", parameterSource); -- To view, visit http://gerrit.ovirt.org/24513 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I533df11f2a5ef52920af4f5ce029f31d83f9c492 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Daniel Erez <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
