Changeset 5549 for ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/persistence/jpa/CommentsDao.java
- Timestamp:
- 08/11/14 16:07:55 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/persistence/jpa/CommentsDao.java
r4098 r5549 35 35 */ 36 36 @Query("select c from Comment c where c.componentId = ?1 order by c.commentDate, c.id") 37 List<Comment> getCommentsFrom Component(String componentId)37 List<Comment> getCommentsFromItem(String componentId) 38 38 throws DataAccessException; 39 39 … … 44 44 * @return Principal name of description's owner, if any. Otherwise, null. 45 45 */ 46 @Query("select user from RegistryUser user, Comment comment, BaseDescription component where comment.id = ?1 and comment.componentId = component.componentId and component.dbUserId = user.id") 46 //@Query("select user from RegistryUser user, Comment comment, BaseDescription component where comment.id = ?1 and comment.componentId = component.componentId and component.dbUserId = user.id") 47 @Query("select user from RegistryUser user, Comment comment where comment.id = ?1 and user.id=comment.userId") 47 48 RegistryUser getOwnerOfComment(long id); 48 49
Note: See TracChangeset
for help on using the changeset viewer.