Commits

farkas  committed ddd24e1

Commit the rest of the patch on USER-78. It seems that the groups didn't make it

  • Participants
  • Parent commits 153ae38

Comments (0)

Files changed (1)

File src/java/com/opensymphony/user/provider/hibernate/dao/HibernateQueries.java

     public static final String USER_BY_USERNAME = "select distinct hibuser from hibuser in class " + HibernateUser.class.getName() + " where hibuser.name = ? ";
     public static final String USER_BY_USERNAME_AND_GROUPNAME = "select distinct hibuser from " + HibernateUser.class.getName() + " as hibuser join hibuser.groups as hibgroup where hibuser.name = ? and hibgroup.name = ?";
     public static final String ALL_USERS = "from hibusers in class " + HibernateUser.class.getName();
-    public static final String GROUP_BY_GROUPNAME = "select distinct hibgroup from hibgroup in class " + HibernateGroup.class + " where hibgroup.name = ? ";
-    public static final String ALL_GROUPS = "from hibgroups in " + HibernateGroup.class;
+    public static final String GROUP_BY_GROUPNAME = "select distinct hibgroup from " + HibernateGroup.class.getName() + " as hibgroup where hibgroup.name = ? ";
+    public static final String ALL_GROUPS = "from hibgroups in class " + HibernateGroup.class.getName();
 }