se.sundsvall.petinventory.integration.db.PetNameRepository Maven / Gradle / Ivy
The newest version!
package se.sundsvall.petinventory.integration.db;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;
import io.github.resilience4j.circuitbreaker.annotation.CircuitBreaker;
import se.sundsvall.petinventory.integration.db.model.PetNameEntity;
@Transactional
@CircuitBreaker(name = "PetNameRepository")
public interface PetNameRepository extends JpaRepository, JpaSpecificationExecutor {
Optional findByName(String name);
}