Added LongListTO, a collection of long
@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
--- /dev/null
+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;
+ }
+
+}