From d65bfc56cd9aaaed2567826214801d0944ed8b0e Mon Sep 17 00:00:00 2001 From: Mice Xia Date: Wed, 6 Feb 2013 15:54:15 +0800 Subject: [PATCH] CLOUDSTACK-1174 rename field status-> state to comply with javabean convetion --- core/src/com/cloud/storage/SnapshotVO.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/com/cloud/storage/SnapshotVO.java b/core/src/com/cloud/storage/SnapshotVO.java index 413083e01fa..0aa489be7c4 100644 --- a/core/src/com/cloud/storage/SnapshotVO.java +++ b/core/src/com/cloud/storage/SnapshotVO.java @@ -59,7 +59,7 @@ public class SnapshotVO implements Snapshot { @Expose @Column(name="status", updatable = true, nullable=false) @Enumerated(value=EnumType.STRING) - private State status; + private State state; @Column(name="snapshot_type") short snapshotType; @@ -117,7 +117,7 @@ public class SnapshotVO implements Snapshot { this.snapshotType = snapshotType; this.typeDescription = typeDescription; this.size = size; - this.status = State.Creating; + this.state = State.Creating; this.prevSnapshotId = 0; this.hypervisorType = hypervisorType; this.version = "2.2"; @@ -245,11 +245,11 @@ public class SnapshotVO implements Snapshot { @Override public State getState() { - return status; + return state; } - public void setStatus(State status) { - this.status = status; + public void setStatus(State state) { + this.state = state; } public String getBackupSnapshotId(){