ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tbeerbo...@apache.org
Subject git commit: AMBARI-7189 - Views: failed to create view instance
Date Sun, 07 Sep 2014 09:59:12 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 637d521b6 -> 42a07f94c


AMBARI-7189 - Views: failed to create view instance


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

Branch: refs/heads/trunk
Commit: 42a07f94cb1eec9a05ac82100c2ac73ffe263ab1
Parents: 637d521
Author: tbeerbower <tbeerbower@hortonworks.com>
Authored: Sat Sep 6 21:03:12 2014 -0400
Committer: tbeerbower <tbeerbower@hortonworks.com>
Committed: Sat Sep 6 21:03:12 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/ambari/server/orm/entities/ViewEntity.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/42a07f94/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java
b/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java
index aec9ab9..8fb5a33 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java
@@ -134,16 +134,16 @@ public class ViewEntity implements ViewDefinition {
    */
   @OneToMany(cascade = CascadeType.ALL)
   @JoinColumns({
-      @JoinColumn(name = "resource_type_id", referencedColumnName = "resource_type_id", nullable
= false),
+      @JoinColumn(name = "resource_type_id", referencedColumnName = "resource_type_id", nullable
= false)
   })
   private Collection<PermissionEntity> permissions = new HashSet<PermissionEntity>();
 
   /**
    * The resource type.
    */
-  @ManyToOne
+  @ManyToOne(cascade = CascadeType.ALL)
   @JoinColumns({
-      @JoinColumn(name = "resource_type_id", referencedColumnName = "resource_type_id", nullable
= false),
+      @JoinColumn(name = "resource_type_id", referencedColumnName = "resource_type_id", nullable
= false)
   })
   private ResourceTypeEntity resourceType;
 


Mime
View raw message