Class PostReactionRepositoryImpl
- java.lang.Object
-
- org.sakaiproject.springframework.data.SpringCrudRepositoryImpl<PostReaction,Long>
-
- org.sakaiproject.conversations.impl.repository.PostReactionRepositoryImpl
-
- All Implemented Interfaces:
PostReactionRepository,Repository<PostReaction,Long>,SpringCrudRepository<PostReaction,Long>
public class PostReactionRepositoryImpl extends SpringCrudRepositoryImpl<PostReaction,Long> implements PostReactionRepository
-
-
Field Summary
-
Fields inherited from class org.sakaiproject.springframework.data.SpringCrudRepositoryImpl
sessionFactory
-
-
Constructor Summary
Constructors Constructor Description PostReactionRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerdeleteByPostId(String postId)List<PostReaction>findByPostIdAndUserId(String postId, String userId)-
Methods inherited from class org.sakaiproject.springframework.data.SpringCrudRepositoryImpl
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAll, findAllById, findById, getById, getDomainClass, save, saveAll, setSessionFactory, startCriteriaQuery
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sakaiproject.springframework.data.SpringCrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAll, findAllById, findById, getById, save, saveAll
-
-
-
-
Method Detail
-
findByPostIdAndUserId
@Transactional(readOnly=true) public List<PostReaction> findByPostIdAndUserId(String postId, String userId)
- Specified by:
findByPostIdAndUserIdin interfacePostReactionRepository
-
deleteByPostId
@Transactional public Integer deleteByPostId(String postId)
- Specified by:
deleteByPostIdin interfacePostReactionRepository
-
-