]> SALOME platform Git repositories - modules/gde.git/commitdiff
Salome HOME
New named query in UserGroup
authormordicus <mordicus@HP-8560w>
Mon, 3 Aug 2015 16:06:12 +0000 (18:06 +0200)
committermordicus <mordicus@HP-8560w>
Mon, 3 Aug 2015 16:06:12 +0000 (18:06 +0200)
Added LongListTO, a collection of long

projects/GDE_App/GDE-ejb/src/java/com/edf/gde/entities/UserGroup.java
projects/GDE_App/GDE-ejb/src/java/com/edf/gde/transferables/LongListTO.java [new file with mode: 0644]

index 2d58b129d665bc719b2818750123f112cef95df0..57ab5752ee6dfba2f332b51c2740e979b7bc631c 100644 (file)
@@ -21,7 +21,8 @@ import javax.validation.constraints.NotNull;
 @NamedQueries ({
     @NamedQuery(name = "UserGroup.findById", query = "SELECT ug FROM UserGroup ug where ug.id = :id"),
     @NamedQuery(name = "UserGroup.findByUserId", query = "SELECT ug FROM UserGroup ug where ug.userId=:userId"),
-    @NamedQuery(name = "UserGroup.findByGroupId", query="SELECT ug FROM UserGroup ug where ug.groupId=:groupId")
+    @NamedQuery(name = "UserGroup.findByGroupId", query="SELECT ug FROM UserGroup ug where ug.groupId=:groupId"),
+    @NamedQuery(name = "UserGroup.findByGroupIdUserId",query="SELECT ug FROM UserGroup ug where ug.groupId=:groupId and ug.userId=:userId")
 })
 public class UserGroup {
     @Id
diff --git a/projects/GDE_App/GDE-ejb/src/java/com/edf/gde/transferables/LongListTO.java b/projects/GDE_App/GDE-ejb/src/java/com/edf/gde/transferables/LongListTO.java
new file mode 100644 (file)
index 0000000..8c029a0
--- /dev/null
@@ -0,0 +1,24 @@
+package com.edf.gde.transferables;
+
+import java.util.List;
+
+/**
+ * Collection of long
+ * @author kavoos
+ */
+
+public class LongListTO {
+    private List<Long> list;
+
+    public LongListTO() {
+    }
+
+    public List<Long> getList() {
+        return list;
+    }
+
+    public void setList(List<Long> list) {
+        this.list = list;
+    }
+    
+}