package com.eactive.testmaster.socket.repository;


import com.eactive.testmaster.socket.entity.NettyServerEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface NettyServerRepository extends JpaRepository<NettyServerEntity, Long>, JpaSpecificationExecutor<NettyServerEntity> {

    Optional<NettyServerEntity> findByPort(Integer port);

    List<NettyServerEntity> findByActive(Boolean active);
}
