@Repository public interface LegalCaseRepository extends org.springframework.data.jpa.repository.JpaRepository<LegalCase,Long>
| Modifier and Type | Method and Description |
|---|---|
LegalCase |
findByCaseNumber(String number) |
LegalCase |
findByLcNumber(String number) |
List<BipartisanDetails> |
getBipartitionDetList(Long legalcaseId) |
List<LegalCaseDocuments> |
getLegalCaseDocumentList(Long legalcaseId) |
List<PwrDocuments> |
getPwrDocumentList(Long pwrId) |
List<BipartisanDetails> |
getRespondantBipartitionDetList(Long legalcaseId) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="select lcd from LegalCaseDocuments lcd where lcd.legalCase.id=:legalcaseId order by lcd.id desc") List<LegalCaseDocuments> getLegalCaseDocumentList(@Param(value="legalcaseId") Long legalcaseId)
@Query(value="select lcd from PwrDocuments lcd where lcd.pwr.id=:pwrId order by lcd.id desc") List<PwrDocuments> getPwrDocumentList(@Param(value="pwrId") Long pwrId)
@Query(value="select lcd from BipartisanDetails lcd where lcd.legalCase.id=:legalcaseId order by lcd.id desc") List<BipartisanDetails> getBipartitionDetList(@Param(value="legalcaseId") Long legalcaseId)
@Query(value="select lcd from BipartisanDetails lcd where lcd.legalCase.id=:legalcaseId and lcd.isRepondent=true order by lcd.id desc") List<BipartisanDetails> getRespondantBipartitionDetList(@Param(value="legalcaseId") Long legalcaseId)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.