|
29 | 29 | import javax.persistence.Temporal; |
30 | 30 | import javax.persistence.TemporalType; |
31 | 31 | import javax.persistence.Transient; |
32 | | - |
33 | 32 | import com.cloud.storage.Storage.StoragePoolType; |
34 | 33 | import com.cloud.utils.db.GenericDao; |
35 | 34 |
|
@@ -77,9 +76,42 @@ public class StoragePoolVO implements StoragePool { |
77 | 76 | @Enumerated(value=EnumType.STRING) |
78 | 77 | private StoragePoolStatus status; |
79 | 78 |
|
| 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; |
80 | 98 | // TODO, disable persisency of storageProvider and storageType, javelin new code not |
81 | 99 | // sync with the schema! |
82 | 100 |
|
| 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 | + |
83 | 115 | // @Column(name="storage_provider", updatable=true, nullable=false) |
84 | 116 | @Transient private String storageProvider; |
85 | 117 |
|
|
0 commit comments