ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject ambari git commit: AMBARI-13735. Ambari throws error when updating Notification. (Laszlo Puskas via swagle)
Date Fri, 04 Dec 2015 23:21:51 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk e5d043e6b -> 5381c3b98


AMBARI-13735. Ambari throws error when updating Notification. (Laszlo Puskas via swagle)


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

Branch: refs/heads/trunk
Commit: 5381c3b98c9050d031d03e3a03ff7a07e9b9ee69
Parents: e5d043e
Author: Siddharth Wagle <swagle@hortonworks.com>
Authored: Fri Dec 4 15:21:46 2015 -0800
Committer: Siddharth Wagle <swagle@hortonworks.com>
Committed: Fri Dec 4 15:21:46 2015 -0800

----------------------------------------------------------------------
 .../apache/ambari/server/orm/entities/AlertTargetEntity.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5381c3b9/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertTargetEntity.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertTargetEntity.java
b/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertTargetEntity.java
index 5151a4a..4bbdd76 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertTargetEntity.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertTargetEntity.java
@@ -47,6 +47,7 @@ import javax.persistence.Table;
 import javax.persistence.TableGenerator;
 
 import org.apache.ambari.server.state.AlertState;
+import org.eclipse.persistence.annotations.Noncacheable;
 
 import com.google.common.collect.ImmutableSet;
 
@@ -89,8 +90,8 @@ public class AlertTargetEntity {
   /**
    * Bi-directional many-to-many association to {@link AlertGroupEntity}
    */
-  @ManyToMany(mappedBy = "alertTargets", cascade = { CascadeType.MERGE,
-      CascadeType.REFRESH })
+  @ManyToMany(mappedBy = "alertTargets", cascade = {CascadeType.MERGE, CascadeType.REFRESH})
+  @Noncacheable
   private Set<AlertGroupEntity> alertGroups;
 
   /**


Mime
View raw message