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

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

import java.util.List;
import java.util.UUID;

@ApplicationScoped
public class TransactionPartsSocialesRepository implements PanacheRepositoryBase<TransactionPartsSociales, UUID> {

    public List<TransactionPartsSociales> findByCompte(UUID compteId) {
        return list("compte.id = ?1 ORDER BY dateTransaction DESC", compteId);
    }
}
