cretaed entities for BillerDetail

This commit is contained in:
himanshu
2025-10-31 10:10:43 +05:30
parent 65cd50567d
commit 6ec6847ad2
31 changed files with 413 additions and 61 deletions
@@ -3,32 +3,13 @@ package com.billpaymentservice.bbps.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.billpaymentservice.bbps.dto.BillerDAO;
import com.billpaymentservice.bbps.entites.BillerDetails;
import java.util.List;
@Repository
public interface BillerDataRepository extends JpaRepository<BillerDAO, String> {
public interface BillerDataRepository extends JpaRepository<BillerDetails, String> {
// ✅ Custom finder methods
// Find billers by category name
List<BillerDAO> findByBillerCategoryName(String billerCategoryName);
// Find all active billers
List<BillerDAO> findByStatus(String status);
// Find billers by alias name
BillerDAO findByBillerAliasName(String billerAliasName);
// Find billers by parent biller ID
List<BillerDAO> findByParentBillerId(String parentBillerId);
// Check if a biller exists by name
boolean existsByBillerName(String billerName);
// Fetch biller by mode (e.g., ONLINE, OFFLINE)
List<BillerDAO> findByBillerMode(String billerMode);
// Fetch biller by ownership (PSU / PRIVATE)
List<BillerDAO> findByBillerOwnerShp(String billerOwnerShp);
}