cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chipchild...@apache.org
Subject git commit: refs/heads/4.1 - CLOUDSTACK-1791: for newly added column in DB, if it's not added in the vo, then raw mysql query will not work
Date Sun, 24 Mar 2013 18:01:22 GMT
Updated Branches:
  refs/heads/4.1 fcf628393 -> 6caaaee0b


CLOUDSTACK-1791: for newly added column in DB, if it's not added in the vo, then raw mysql
query will not work


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6caaaee0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6caaaee0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6caaaee0

Branch: refs/heads/4.1
Commit: 6caaaee0b1f1493aa3d272dc0eb8f11eb6da76eb
Parents: fcf6283
Author: Edison Su <sudison@gmail.com>
Authored: Fri Mar 22 15:19:06 2013 -0700
Committer: Chip Childers <chip.childers@gmail.com>
Committed: Sun Mar 24 17:54:54 2013 +0000

----------------------------------------------------------------------
 core/src/com/cloud/storage/StoragePoolVO.java |   34 +++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6caaaee0/core/src/com/cloud/storage/StoragePoolVO.java
----------------------------------------------------------------------
diff --git a/core/src/com/cloud/storage/StoragePoolVO.java b/core/src/com/cloud/storage/StoragePoolVO.java
index af6e4e2..07bc36d 100644
--- a/core/src/com/cloud/storage/StoragePoolVO.java
+++ b/core/src/com/cloud/storage/StoragePoolVO.java
@@ -29,7 +29,6 @@ import javax.persistence.TableGenerator;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
 import javax.persistence.Transient;
-
 import com.cloud.storage.Storage.StoragePoolType;
 import com.cloud.utils.db.GenericDao;
 
@@ -77,9 +76,42 @@ public class StoragePoolVO implements StoragePool {
     @Enumerated(value=EnumType.STRING)
     private StoragePoolStatus status;
     
+    @Column(name = "scope")
+    private String scope;
+    
+    /**
+     * @return the scope
+     */
+    public String getScope() {
+        return scope;
+    }
+
+    /**
+     * @param scope the scope to set
+     */
+    public void setScope(String scope) {
+        this.scope = scope;
+    }
+
+    @Column(name = "storage_provider_id", updatable = true, nullable = false)
+    private Long storageProviderId;
     // TODO, disable persisency of storageProvider and storageType, javelin new code not
     // sync with the schema!
     
+    /**
+     * @return the storageProviderId
+     */
+    public Long getStorageProviderId() {
+        return storageProviderId;
+    }
+
+    /**
+     * @param storageProviderId the storageProviderId to set
+     */
+    public void setStorageProviderId(Long storageProviderId) {
+        this.storageProviderId = storageProviderId;
+    }
+
     // @Column(name="storage_provider", updatable=true, nullable=false)
     @Transient private String storageProvider;
     


Mime
View raw message