ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject git commit: AMBARI-4150. Provide ability to batch requests based on schedule. Missing annotation. (swagle)
Date Wed, 08 Jan 2014 01:10:41 GMT
Updated Branches:
  refs/heads/trunk a0c5805e2 -> 56b888078


AMBARI-4150. Provide ability to batch requests based on schedule. Missing annotation. (swagle)


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

Branch: refs/heads/trunk
Commit: 56b888078431d7f67aecfcd84a5eb7b18dad2e9a
Parents: a0c5805
Author: Siddharth Wagle <swagle@hortonworks.com>
Authored: Tue Jan 7 17:10:09 2014 -0800
Committer: Siddharth Wagle <swagle@hortonworks.com>
Committed: Tue Jan 7 17:10:09 2014 -0800

----------------------------------------------------------------------
 .../ambari/server/orm/entities/RequestScheduleEntity.java     | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/56b88807/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RequestScheduleEntity.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RequestScheduleEntity.java
b/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RequestScheduleEntity.java
index 34bbe2b..5405878 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RequestScheduleEntity.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RequestScheduleEntity.java
@@ -29,6 +29,7 @@ import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
 import javax.persistence.OneToMany;
 import javax.persistence.Table;
+import javax.persistence.TableGenerator;
 import java.util.Collection;
 
 @Table(name = "requestschedule")
@@ -40,6 +41,12 @@ import java.util.Collection;
     "SELECT reqSchedule FROM RequestScheduleEntity reqSchedule " +
       "WHERE reqSchedule.status=:status")
 })
+@TableGenerator(name = "schedule_id_generator",
+  table = "ambari_sequences", pkColumnName = "sequence_name", valueColumnName = "value"
+  , pkColumnValue = "requestschedule_id_seq"
+  , initialValue = 1
+  , allocationSize = 1
+)
 public class RequestScheduleEntity {
 
   @Id


Mime
View raw message