Yair Zaslavsky has posted comments on this change.
Change subject: core: VmDevice implements comparable(#852451)
......................................................................
Patch Set 2: (1 inline comment)
....................................................
File
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmDeviceId.java
Line 86: public void setVmId(Guid vmId) {
Line 87: this.vmId = vmId;
Line 88: }
Line 89:
Line 90: @Override
Yes. I checked that.
Of course, this means that our stored procedure has to return in ascending
order.
Line 91: public int compareTo(VmDeviceId rhs) {
Line 92: int vmComparsion = getVmId().compareTo(rhs.getVmId());
Line 93: if (vmComparsion == 0) {
Line 94: return getDeviceId().compareTo(rhs.getDeviceId());
--
To view, visit http://gerrit.ovirt.org/7989
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic82521368a4f3c3c518c8cf4e5dc460b9e54f379
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches