Interface ChartRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Chart,Long>
,org.springframework.data.jpa.repository.JpaRepository<Chart,Long>
,org.springframework.data.repository.PagingAndSortingRepository<Chart,Long>
,org.springframework.data.repository.query.QueryByExampleExecutor<Chart>
,org.springframework.data.repository.Repository<Chart,Long>
public interface ChartRepository extends org.springframework.data.jpa.repository.JpaRepository<Chart,Long>
Spring Data JPA repository for the Chart entity.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Chart>
findAllWithEagerRelationships()
List<Chart>
findByOwnerIsCurrentUser(String login)
List<Chart>
findByOwnerIsCurrentUserOrShared(String login)
Optional<Chart>
findOneWithEagerRelationships(Long id)
-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
-
-
-
-
Method Detail
-
findByOwnerIsCurrentUser
@Query("select chart from Chart chart where chart.owner.login = :login") List<Chart> findByOwnerIsCurrentUser(@Param("login") String login)
-
findByOwnerIsCurrentUserOrShared
@Query("select chart from Chart chart where chart.shared = TRUE or chart.owner.login = :login") List<Chart> findByOwnerIsCurrentUserOrShared(@Param("login") String login)
-
findAllWithEagerRelationships
@Query("select distinct chart from Chart chart left join fetch chart.graphs") List<Chart> findAllWithEagerRelationships()
-
-