package dev.lions.unionflow.server.repository.mutuelle;

import dev.lions.unionflow.server.entity.mutuelle.ParametresFinanciersMutuelle;
import io.quarkus.hibernate.orm.panache.PanacheRepositoryBase;
import jakarta.enterprise.context.ApplicationScoped;

import java.util.Optional;
import java.util.UUID;

@ApplicationScoped
public class ParametresFinanciersMutuellRepository implements PanacheRepositoryBase<ParametresFinanciersMutuelle, UUID> {

    public Optional<ParametresFinanciersMutuelle> findByOrganisation(UUID orgId) {
        return find("organisation.id", orgId).firstResultOptional();
    }
}
