Author: amarkhel
Date: 2009-04-29 12:18:09 -0400 (Wed, 29 Apr 2009)
New Revision: 13924
Modified:
trunk/examples/photoalbum/source/ejb/src/main/java/org/richfaces/photoalbum/service/Constants.java
Log:
Fix Rf-6970
Modified:
trunk/examples/photoalbum/source/ejb/src/main/java/org/richfaces/photoalbum/service/Constants.java
===================================================================
---
trunk/examples/photoalbum/source/ejb/src/main/java/org/richfaces/photoalbum/service/Constants.java 2009-04-29
16:13:57 UTC (rev 13923)
+++
trunk/examples/photoalbum/source/ejb/src/main/java/org/richfaces/photoalbum/service/Constants.java 2009-04-29
16:18:09 UTC (rev 13924)
@@ -154,12 +154,12 @@
public static final String SEARCH_METATAG_QUERY = "from MetaTag t where
lower(t.tag) like :name";
public static final String SEARCH_USERS_QUERY = "select u from User u where
(lower(u.login) like :name or lower(u.firstName) like :name or lower(u.secondName) like
:name) ";
public static final String SEARCH_IMAGE_SHARED_ADDON = " and
i.album.shelf.shared=true";
- public static final String SEARCH_IMAGE_MY_ADDON = " and
i.album.owner.login=:login";
+ public static final String SEARCH_IMAGE_MY_ADDON = " and
i.album.shelf.owner.login=:login";
public static final String SEARCH_IMAGE_QUERY = "from Image i where (lower(i.name)
like :name or lower(i.description) like :name or lower(i.cameraModel) like :name) ";
public static final String SHARED_PARAMETER = "shared";
public static final String NAME_PARAMETER = "name";
public static final String SEARCH_ALBUM_SHARED_ADDON = " and
a.shelf.shared=true";
- public static final String SEARCH_ALBUM_MY_ADDON = " and
a.owner.login=:login";
+ public static final String SEARCH_ALBUM_MY_ADDON = " and
a.shelf.owner.login=:login";
public static final String SEARCH_ALBUM_QUERY = "from Album a where lower(a.name)
like :name or lower(a.description) like :name";
public static final String USER_SHELVES_QUERY = "user-shelves";
public static final String SHELF_PARAMETER = "shelf";
Show replies by date