Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 bf45b0a4f -> 08f99fdfe


AMBARI-11829 - Views : Cannot create instance of File View (tbeerbower)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/08f99fdf
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/08f99fdf
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/08f99fdf

Branch: refs/heads/branch-2.1
Commit: 08f99fdfefb393fcc65b0ac7dd9b4e4d1377bf3f
Parents: bf45b0a
Author: tbeerbower <tbeerbo...@hortonworks.com>
Authored: Wed Jun 10 08:39:02 2015 -0400
Committer: tbeerbower <tbeerbo...@hortonworks.com>
Committed: Wed Jun 10 08:45:12 2015 -0400

----------------------------------------------------------------------
 .../org/apache/ambari/server/orm/entities/ViewInstanceEntity.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/08f99fdf/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java
index c1400d7..5044267 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java
@@ -148,7 +148,7 @@ public class ViewInstanceEntity implements 
ViewInstanceDefinition {
    * Indicates whether or not to alter the names of the data store entities to
    * avoid db reserved word conflicts.
    */
-  @Column(name = "alter_names")
+  @Column(name = "alter_names", nullable = false)
   @Basic
   private Integer alterNames;
 
@@ -216,6 +216,7 @@ public class ViewInstanceEntity implements 
ViewInstanceDefinition {
 
   public ViewInstanceEntity() {
     instanceConfig = null;
+    this.alterNames = 1;
   }
 
   /**

Reply via email to