Ignore:
Timestamp:
08/11/14 16:07:55 (10 years ago)
Author:
olhsha@mpi.nl
Message:

Added group service. Tested via the tomcat on loclahots (test URI and postman), old unit tests are adjusted and work well. Todo: retest on localhost tomcat, look at run-time exceptions, add new unit tests, adjust front-end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/persistence/jpa/CommentsDao.java

    r4098 r5549  
    3535         */
    3636        @Query("select c from Comment c where c.componentId = ?1 order by c.commentDate, c.id")
    37         List<Comment> getCommentsFromComponent(String componentId)
     37        List<Comment> getCommentsFromItem(String componentId)
    3838                        throws DataAccessException;
    3939
     
    4444         * @return Principal name of description's owner, if any. Otherwise, null.
    4545         */
    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")
    4748        RegistryUser getOwnerOfComment(long id);
    4849
Note: See TracChangeset for help on using the changeset viewer.