public interface UserAppDao extends org.springframework.data.jpa.repository.JpaRepository<UserApp,java.lang.Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<UserApp>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteByUserId(java.lang.Long userId) |
java.util.Set<java.lang.Long> |
findAppIdByUserId(long userId) |
java.util.List<UserApp> |
findByUserId(long userId) |
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushcount, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save@Query(value="select ua.appId from UserApp ua where ua.userId = :userId")
java.util.Set<java.lang.Long> findAppIdByUserId(@Param(value="userId")
long userId)
@Query(value="select ua from UserApp ua where ua.userId = :userId") java.util.List<UserApp> findByUserId(@Param(value="userId") long userId)
@Transactional(rollbackFor=java.lang.Exception.class)
@Modifying(flushAutomatically=true,
clearAutomatically=true)
@Query(value="delete from UserApp ua where ua.userId = :userId")
void deleteByUserId(@Param(value="userId")
java.lang.Long userId)