Skip to content

Commit 6caaaee

Browse files
sudisonchipchilders
authored andcommitted
CLOUDSTACK-1791: for newly added column in DB, if it's not added in the vo, then raw mysql query will not work
1 parent fcf6283 commit 6caaaee

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

core/src/com/cloud/storage/StoragePoolVO.java

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import javax.persistence.Temporal;
3030
import javax.persistence.TemporalType;
3131
import javax.persistence.Transient;
32-
3332
import com.cloud.storage.Storage.StoragePoolType;
3433
import com.cloud.utils.db.GenericDao;
3534

@@ -77,9 +76,42 @@ public class StoragePoolVO implements StoragePool {
7776
@Enumerated(value=EnumType.STRING)
7877
private StoragePoolStatus status;
7978

79+
@Column(name = "scope")
80+
private String scope;
81+
82+
/**
83+
* @return the scope
84+
*/
85+
public String getScope() {
86+
return scope;
87+
}
88+
89+
/**
90+
* @param scope the scope to set
91+
*/
92+
public void setScope(String scope) {
93+
this.scope = scope;
94+
}
95+
96+
@Column(name = "storage_provider_id", updatable = true, nullable = false)
97+
private Long storageProviderId;
8098
// TODO, disable persisency of storageProvider and storageType, javelin new code not
8199
// sync with the schema!
82100

101+
/**
102+
* @return the storageProviderId
103+
*/
104+
public Long getStorageProviderId() {
105+
return storageProviderId;
106+
}
107+
108+
/**
109+
* @param storageProviderId the storageProviderId to set
110+
*/
111+
public void setStorageProviderId(Long storageProviderId) {
112+
this.storageProviderId = storageProviderId;
113+
}
114+
83115
// @Column(name="storage_provider", updatable=true, nullable=false)
84116
@Transient private String storageProvider;
85117

0 commit comments

Comments
 (0)