You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by tb...@apache.org on 2015/06/10 14:43:53 UTC
ambari git commit: AMBARI-11829 - Views : Cannot create instance of
File View (tbeerbower)
Repository: ambari
Updated Branches:
refs/heads/trunk 87d95d299 -> 4c6f74aa7
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/4c6f74aa
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4c6f74aa
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4c6f74aa
Branch: refs/heads/trunk
Commit: 4c6f74aa7e307ce80171216d6392829cf95aa3c6
Parents: 87d95d2
Author: tbeerbower <tb...@hortonworks.com>
Authored: Wed Jun 10 08:39:02 2015 -0400
Committer: tbeerbower <tb...@hortonworks.com>
Committed: Wed Jun 10 08:42:53 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/4c6f74aa/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;
}
/**