com.silverpeas.notification.delayed.repository
Interface DelayedNotificationUserSettingRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<DelayedNotificationUserSetting,Integer>, org.springframework.data.jpa.repository.JpaRepository<DelayedNotificationUserSetting,Integer>, org.springframework.data.repository.PagingAndSortingRepository<DelayedNotificationUserSetting,Integer>, org.springframework.data.repository.Repository<DelayedNotificationUserSetting,Integer>

public interface DelayedNotificationUserSettingRepository
extends org.springframework.data.jpa.repository.JpaRepository<DelayedNotificationUserSetting,Integer>

Author:
Yohann Chastagnier

Method Summary
 List<DelayedNotificationUserSetting> findByUserId(int userId)
           
 List<DelayedNotificationUserSetting> findByUserIdAndChannel(int userId, int channel)
           
 
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, flush, save, saveAndFlush
 
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
 
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, delete, delete, deleteAll, exists, findAll, findOne, save
 

Method Detail

findByUserId

@Query(value="from DelayedNotificationUserSetting where userId = :param")
List<DelayedNotificationUserSetting> findByUserId(@Param(value="param")
                                                        int userId)

findByUserIdAndChannel

@Query(value="from DelayedNotificationUserSetting where userId = :param and channel = :param2")
List<DelayedNotificationUserSetting> findByUserIdAndChannel(@Param(value="param")
                                                                  int userId,
                                                                  @Param(value="param2")
                                                                  int channel)


Copyright © 2016 Silverpeas. All Rights Reserved.