cretaed entities for BillerDetail
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user