@Repository public interface LoopRepository extends org.springframework.data.jpa.repository.JpaRepository<LoopJPA,java.lang.Integer>, VersionedContentRepository<LoopJPA>
| Modifier and Type | Method and Description |
|---|---|
java.util.List<LoopJPA> |
findByDocId(java.lang.Integer docId) |
java.util.List<LoopJPA> |
findByVersion(Version version) |
LoopJPA |
findByVersionAndIndex(Version version,
int index) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="SELECT l FROM LoopJPA l WHERE l.version = ?1") java.util.List<LoopJPA> findByVersion(Version version)
findByVersion in interface VersionedContentRepository<LoopJPA>@Query(value="SELECT l FROM LoopJPA l WHERE l.version = ?1 AND l.index = ?2") LoopJPA findByVersionAndIndex(Version version, int index)
@Query(value="SELECT l.* FROM imcms_text_doc_content_loops l WHERE doc_id = ?1",
nativeQuery=true)
java.util.List<LoopJPA> findByDocId(java.lang.Integer docId)