CLOUDSTACK-1174 rename field status-> state to comply with javabean convetion

This commit is contained in:
Mice Xia 2013-02-06 15:54:15 +08:00
parent 5a2cd68fa8
commit d65bfc56cd
1 changed files with 5 additions and 5 deletions

View File

@ -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(){