@Repository public interface DocumentUrlRepository extends org.springframework.data.jpa.repository.JpaRepository<DocumentUrlJPA,java.lang.Integer>, VersionedContentRepository<DocumentUrlJPA>
| Modifier and Type | Method and Description |
|---|---|
java.util.List<DocumentUrlJPA> |
findByDocId(int docId) |
DocumentUrlJPA |
findByDocIdAndVersionNo(int docId,
int versionNo) |
java.util.List<DocumentUrlJPA> |
findByVersion(Version version) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="SELECT c FROM DocumentUrlJPA c WHERE c.version.docId = ?1 AND c.version.no = ?2") DocumentUrlJPA findByDocIdAndVersionNo(int docId, int versionNo)
@Query(value="SELECT c FROM DocumentUrlJPA c WHERE c.version.docId = ?1") java.util.List<DocumentUrlJPA> findByDocId(int docId)
@Query(value="SELECT d FROM DocumentUrlJPA d WHERE d.version = ?1") java.util.List<DocumentUrlJPA> findByVersion(Version version)
findByVersion in interface VersionedContentRepository<DocumentUrlJPA>