Source:
public VmTemplate mapRow(ResultSet rs, int rowNum) throws SQLException { final VmTemplate entity = new VmTemplate(); map(rs, entity); entity.setId(Guid.createGuidFromString(rs.getString("vmt_guid"))); entity.setchild_count(rs.getInt("child_count")); entity.setMemSizeMb(rs.getInt("mem_size_mb")); entity.setName(rs.getString("name")); entity.setOs(VmOsType.forValue(rs.getInt("os"))); entity.setVdsGroupId(Guid.createGuidFromString(rs.getString("vds_group_id"))); entity.setDomain(rs.getString("domain")); entity.setNumOfMonitors(rs.getInt("num_of_monitors")); entity.setAllowConsoleReconnect(rs.getBoolean("allow_console_reconnect")); entity.setstatus(VmTemplateStatus.forValue(rs.getInt("status"))); entity.setvds_group_name(rs.getString("vds_group_name")); entity.setstorage_pool_id(NGuid.createGuidFromString(rs.getString("storage_pool_id"))); entity.setstorage_pool_name(rs.getString("storage_pool_name")); entity.setDefaultDisplayType(DisplayType.forValue(rs.getInt("default_display_type"))); entity.setQuotaId(Guid.createGuidFromString(rs.getString("quota_id"))); entity.setQuotaName(rs.getString("quota_name")); entity.setQuotaEnforcementType(QuotaEnforcementTypeEnum.forValue(rs.getInt("quota_enforcement_type"))); entity.setMigrationSupport(MigrationSupport.forValue(rs.getInt("migration_support"))); entity.setDedicatedVmForVds(NGuid.createGuidFromString(rs.getString("dedicated_vm_for_vds"))); entity.setDisabled(rs.getBoolean("is_disabled")); entity.setTunnelMigration((Boolean) rs.getObject("tunnel_migration")); entity.setVncKeyboardLayout(rs.getString("vnc_keyboard_layout")); entity.setMinAllocatedMem(rs.getInt("min_allocated_mem")); return entity; }

Target:
public VmTemplate mapRow(ResultSet rs, int rowNum) throws SQLException { final VmTemplate entity = new VmTemplate(); map(rs, entity); entity.setId(Guid.createGuidFromString(rs.getString("vmt_guid"))); entity.setChildCount(rs.getInt("child_count")); entity.setMemSizeMb(rs.getInt("mem_size_mb")); entity.setName(rs.getString("name")); entity.setOs(VmOsType.forValue(rs.getInt("os"))); entity.setVdsGroupId(Guid.createGuidFromString(rs.getString("vds_group_id"))); entity.setDomain(rs.getString("domain")); entity.setNumOfMonitors(rs.getInt("num_of_monitors")); entity.setAllowConsoleReconnect(rs.getBoolean("allow_console_reconnect")); entity.setStatus(VmTemplateStatus.forValue(rs.getInt("status"))); entity.setVdsGroupName(rs.getString("vds_group_name")); entity.setStoragePoolId(NGuid.createGuidFromString(rs.getString("storage_pool_id"))); entity.setStoragePoolName(rs.getString("storage_pool_name")); entity.setDefaultDisplayType(DisplayType.forValue(rs.getInt("default_display_type"))); entity.setQuotaId(Guid.createGuidFromString(rs.getString("quota_id"))); entity.setQuotaName(rs.getString("quota_name")); entity.setQuotaEnforcementType(QuotaEnforcementTypeEnum.forValue(rs.getInt("quota_enforcement_type"))); entity.setMigrationSupport(MigrationSupport.forValue(rs.getInt("migration_support"))); entity.setDedicatedVmForVds(NGuid.createGuidFromString(rs.getString("dedicated_vm_for_vds"))); entity.setDisabled(rs.getBoolean("is_disabled")); entity.setTunnelMigration((Boolean) rs.getObject("tunnel_migration")); entity.setVncKeyboardLayout(rs.getString("vnc_keyboard_layout")); entity.setMinAllocatedMem(rs.getInt("min_allocated_mem")); return entity; }