]> SALOME platform Git repositories - modules/gde.git/commitdiff
Salome HOME
Sequence generation fixes
authorKavoos Bojnourdi <kavoos.bojnourdi@edf.fr>
Sat, 29 Aug 2015 14:32:59 +0000 (16:32 +0200)
committerKavoos Bojnourdi <kavoos.bojnourdi@edf.fr>
Sat, 29 Aug 2015 14:32:59 +0000 (16:32 +0200)
13 files changed:
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/Attribute.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/AttributeGroup.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/Chunk.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/ChunkInfo.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/GDEFile.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/Group.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/GroupPermission.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/Profile.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/ProfileAttribute.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/Study.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/User.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/UserGroup.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/sql/init.sql

index c2c0f32bf86951252a9af15700726bb9c8ffa9d5..4f636129fda6e0468602a37388a063ef63a4f56c 100644 (file)
@@ -45,7 +45,7 @@ public class Attribute implements Serializable {
     @Basic(optional = false)
     @NotNull
     @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN_SEQUENCE")
-    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE", allocationSize = 50, initialValue = 1000)
+    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE",allocationSize = 50, initialValue = 10000)
     @Column(name = "id")
     private long id;
     @Size(max = 255)
index 39e0abbd2cd021dab73fbf421e8b8ee2922b347e..b5fe16fd48bb40de930e3638573a1cfd7beff21c 100644 (file)
@@ -20,7 +20,6 @@ import javax.persistence.Id;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
 import javax.persistence.OneToMany;
-import javax.persistence.SequenceGenerator;
 import javax.persistence.Table;
 import javax.validation.constraints.NotNull;
 import javax.xml.bind.annotation.XmlRootElement;
@@ -44,7 +43,6 @@ public class AttributeGroup implements Serializable {
     @Basic(optional = false)
     @NotNull
     @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN_SEQUENCE")
-    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE", allocationSize = 50, initialValue = 1000)
     @Column(name = "id")
     private long id;
     @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true, cascade = {CascadeType.ALL}, mappedBy = "attributeGroup")
index 7f90a6d23d0a1973021247d0ef3d8eecb97dd0c9..e3e5c4b45fb159541ab7ce341aa948aad30e5d98 100644 (file)
@@ -15,7 +15,6 @@ import javax.persistence.Id;
 import javax.persistence.Lob;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
-import javax.persistence.SequenceGenerator;
 import javax.persistence.Table;
 import javax.validation.constraints.NotNull;
 import javax.validation.constraints.Size;
@@ -45,7 +44,6 @@ public class Chunk implements Serializable {
     @Basic(optional = false)
     @NotNull
     @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN_SEQUENCE")
-    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE", allocationSize = 50, initialValue = 1000)
     @Column(name = "id")
     private long id;
     @Column(name = "file_id", nullable = false)
index a3bd1c82121b501614b9bd0baa71c423b7a04003..817cbfc20a0ba319b9c5c096d47a4ffc514552b0 100644 (file)
@@ -35,10 +35,6 @@ import javax.xml.bind.annotation.XmlRootElement;
 public class ChunkInfo implements Serializable {
     private static final long serialVersionUID = 1L;
     @Id
-    @Basic(optional = false)
-    @NotNull
-    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN_SEQUENCE")
-    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE", allocationSize = 50, initialValue = 1000)
     @Column(name = "id")
     private long id;
     @Column(name = "file_id", nullable = false)
index 31348dcbd625db3ca630ab671436c3fe7e780087..cd3b0d29a22d6620d45feb1ab55594793cf50e76 100644 (file)
@@ -20,7 +20,6 @@ import javax.persistence.JoinColumn;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
 import javax.persistence.OneToOne;
-import javax.persistence.SequenceGenerator;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
@@ -54,7 +53,6 @@ public class GDEFile implements Serializable {
     @NotNull
     @Column(name = "id")
     @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN_SEQUENCE")
-    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE", allocationSize = 50, initialValue = 1000)
     private long id;
     @Size(max = 255)
     @Column(name = "name")
index 30b28117cab16a8b21e5731dc2bab49da3bbec8c..d9c900eceb33c45cc2af842e473d2d767ee4ee96 100644 (file)
@@ -13,7 +13,6 @@ import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
-import javax.persistence.SequenceGenerator;
 import javax.persistence.Table;
 import javax.validation.constraints.NotNull;
 import javax.validation.constraints.Size;
@@ -35,7 +34,6 @@ public class Group {
     @NotNull
     @Column(name = "id")
     @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN_SEQUENCE")
-    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE", allocationSize = 50, initialValue = 1000)
     private Long id;
     @Size(max = 255)
     @Column(name = "groupName")
index b6ea114a7b5e5bcea3e8d5501f2af72ab400ca36..ad0f1b6b4ff350c4da1077c7428155d3a7a84c83 100644 (file)
@@ -10,7 +10,6 @@ import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
-import javax.persistence.SequenceGenerator;
 import javax.persistence.Table;
 import javax.validation.constraints.NotNull;
 import org.eclipse.persistence.annotations.Cache;
@@ -46,7 +45,6 @@ public class GroupPermission implements Serializable {
     @NotNull
     @Column(name = "id")
     @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN_SEQUENCE")
-    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE", allocationSize = 50, initialValue = 1000)
     private Long id;
     @Column(name = "groupId")
     long groupId;
index 9e6d53f3f3061e715cb7617b434caa3410cdbb8d..95a39ca56284faafd4850f40190fcc081729afbd 100644 (file)
@@ -22,7 +22,6 @@ import javax.persistence.Id;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
 import javax.persistence.OneToMany;
-import javax.persistence.SequenceGenerator;
 import javax.persistence.Table;
 import javax.validation.constraints.NotNull;
 import javax.validation.constraints.Size;
@@ -47,7 +46,6 @@ public class Profile implements Serializable {
     @Basic(optional = false)
     @NotNull
     @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN_SEQUENCE")
-    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE", allocationSize = 50, initialValue = 1000)
     @Column(name = "id")
     private Long id;
     @Size(max = 255)
index f3c60023e50109715bb4467a0995e7bc49bd29e8..9060533a2ba62d65b9cb73d4bdcfe6d85d9472ad 100644 (file)
@@ -17,7 +17,6 @@ import javax.persistence.JoinColumn;
 import javax.persistence.ManyToOne;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
-import javax.persistence.SequenceGenerator;
 import javax.persistence.Table;
 import javax.validation.constraints.NotNull;
 import javax.validation.constraints.Size;
@@ -42,7 +41,6 @@ public class ProfileAttribute implements Serializable {
     @Basic(optional = false)
     @NotNull
     @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN_SEQUENCE")
-    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE", allocationSize = 50, initialValue = 1000)
     @Column(name = "id")
     private Long id;
     @Size(max = 255)
index d48f9da5f6db4865b254b2fadd3e48a0708643c0..b196f35c05eab2409eec60a85dc17e371ecf654d 100644 (file)
@@ -22,7 +22,6 @@ import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
 import javax.persistence.OneToMany;
 import javax.persistence.OneToOne;
-import javax.persistence.SequenceGenerator;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
@@ -53,7 +52,6 @@ public class Study implements Serializable {
     @NotNull
     @Column(name = "id")
     @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN_SEQUENCE")
-    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE", allocationSize = 50, initialValue = 1000)
     private long id;
     @Size(max = 255)
     @Column(name = "name")
index 68264a25dc2cd14d53f48dc814f6304cc3f41445..4815e19e41492528c4b06445ba9a68532cc71ec3 100644 (file)
@@ -13,7 +13,6 @@ import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
-import javax.persistence.SequenceGenerator;
 import javax.persistence.Table;
 import javax.validation.constraints.NotNull;
 import javax.validation.constraints.Size;
@@ -40,7 +39,6 @@ public class User implements Serializable {
     @NotNull
     @Column(name = "id")
     @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN_SEQUENCE")
-    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE", allocationSize = 50, initialValue = 1000)
     private Long id;
     @Size(max = 255)
     @Column(name = "userName")
index 5ee7d92e398de4746d533c427f54288b5ede186d..077597340076343e841b61f7950c887739107936 100644 (file)
@@ -13,7 +13,6 @@ import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
-import javax.persistence.SequenceGenerator;
 import javax.persistence.Table;
 import javax.validation.constraints.NotNull;
 import org.eclipse.persistence.annotations.Cache;
@@ -46,7 +45,6 @@ public class UserGroup implements Serializable {
     @NotNull
     @Column(name = "id")
     @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_GEN_SEQUENCE")
-    @SequenceGenerator(name = "SEQ_GEN_SEQUENCE", allocationSize = 50, initialValue = 1000)
     private Long id;
     @Column(name = "userId")
     long userId;
index ed444a15087bc857b47875d4243aa3596d0f4580..a7e687f1079d17097a9a88f3500277dd22ca9836 100644 (file)
@@ -1,46 +1,48 @@
+drop sequence if exists INIT_VALUES_SEQ;
+create sequence  INIT_VALUES_SEQ START WITH 10;
 -- The 1000 first ids are reserved for initial data
 INSERT INTO users (id,username,userpassword) VALUES (1,'admin','edf123');
 INSERT INTO group_ (id,groupname) VALUES (1,'admins');
-INSERT into usergroup(id,groupid,userid) VALUES (2,1,1);
+INSERT into usergroup(id,groupid,userid) VALUES (1,1,1);
 /* User management permissions */
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (3, 1, 'UserService',1); -- Create user 
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (4, 1, 'UserService',2); -- Delete user
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (5, 1, 'UserService',3); -- Add to group
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (6, 1, 'UserService',4); -- Remove from group
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (7, 1, 'UserService',5); -- Create group
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (8, 1, 'UserService',6); -- Delete group
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (9, 1, 'UserService',7); -- Find user
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (10, 1, 'UserService',8); -- Find group
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'UserService',1); -- Create user 
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'UserService',2); -- Delete user
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'UserService',3); -- Add to group
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'UserService',4); -- Remove from group
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'UserService',5); -- Create group
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'UserService',6); -- Delete group
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'UserService',7); -- Find user
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'UserService',8); -- Find group
 /* Studies permissions */
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (11, 1, 'StudyService',1); -- Create study
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (12, 1, 'StudyService',2); -- Set study state
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (13, 1, 'StudyService',3); -- Read study
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (14, 1, 'StudyService',4); -- Delete study
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (15, 1, 'StudyService',5); -- List studies
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'StudyService',1); -- Create study
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'StudyService',2); -- Set study state
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'StudyService',3); -- Read study
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'StudyService',4); -- Delete study
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'StudyService',5); -- List studies
 /* Profiles services */
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (16, 1, 'ProfilesService',1); -- Create profile
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (17, 1, 'ProfilesService',2); -- Delete profile
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (18, 1, 'ProfilesService',3); -- Read profile
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (19, 1, 'ProfilesService',4); -- Update profile
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (20, 1, 'ProfilesService',5); -- Create profile attribute
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (21, 1, 'ProfilesService',6); -- Delete profile attribute
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (22, 1, 'ProfilesService',7); -- Read profile attribute
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (23, 1, 'ProfilesService',8); -- Update profile attribute
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'ProfilesService',1); -- Create profile
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'ProfilesService',2); -- Delete profile
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'ProfilesService',3); -- Read profile
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'ProfilesService',4); -- Update profile
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'ProfilesService',5); -- Create profile attribute
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'ProfilesService',6); -- Delete profile attribute
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'ProfilesService',7); -- Read profile attribute
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'ProfilesService',8); -- Update profile attribute
 /* Attributes services */
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (24, 1, 'AttributesService',1); -- Create attribute
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (25, 1, 'AttributesService',2); -- Delete attribute
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (26, 1, 'AttributesService',3); -- Read attribute
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (27, 1, 'AttributesService',4); -- Create attribute group
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (28, 1, 'AttributesService',5); -- Delete attribute group
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (29, 1, 'AttributesService',6); -- Update attribute group
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (30, 1, 'AttributesService',7); -- Read attribute group
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'AttributesService',1); -- Create attribute
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'AttributesService',2); -- Delete attribute
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'AttributesService',3); -- Read attribute
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'AttributesService',4); -- Create attribute group
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'AttributesService',5); -- Delete attribute group
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'AttributesService',6); -- Update attribute group
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'AttributesService',7); -- Read attribute group
 /* File services */ 
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (31, 1, 'FileService',1); -- 
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (32, 1, 'FileService',2); -- 
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (33, 1, 'FileService',3); -- 
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (34, 1, 'FileService',4); -- 
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (35, 1, 'FileService',5); -- 
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (36, 1, 'FileService',6); -- 
-INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (37, 1, 'FileService',7); -- 
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'FileService',1); -- 
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'FileService',2); -- 
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'FileService',3); -- 
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'FileService',4); -- 
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'FileService',5); -- 
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'FileService',6); -- 
+INSERT INTO GROUPPERMISSIONS (id,groupid,servicename,methodindex) VALUES (nextval('INIT_VALUES_SEQ'), 1, 'FileService',7); --