package de.ph87.homeautomation.property; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import java.util.List; import java.util.Optional; public interface PropertyRepository extends JpaRepository, JpaSpecificationExecutor { Optional findByTitle(String title); List findAllByReadChannel_Id(long readChannelId); List findAllByWriteChannel_Id(final long writeChannelId); boolean existsByTitle(String title); List findAllByReadChannelNotNull(); Optional findBySlug(String slug); }