com.eurodyn.qlack.fuse.aaa.repository.SessionRepository Maven / Gradle / Ivy
package com.eurodyn.qlack.fuse.aaa.repository;
import com.eurodyn.qlack.fuse.aaa.model.Session;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface SessionRepository extends AAARepository {
@Modifying
void deleteByCreatedOnBefore(long date);
Page findByUserId(String userId, Pageable pageable);
List findByCreatedOnBeforeAndTerminatedOnNull(long date);
}