Interface PreferenceRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<PreferenceEO,Long>, org.springframework.data.jpa.repository.JpaRepository<PreferenceEO,Long>, org.springframework.data.repository.PagingAndSortingRepository<PreferenceEO,Long>, PreferenceRepositoryCustom, org.springframework.data.repository.query.QueryByExampleExecutor<PreferenceEO>, org.springframework.data.repository.Repository<PreferenceEO,Long>

interface PreferenceRepository extends org.springframework.data.jpa.repository.JpaRepository<PreferenceEO,Long>, PreferenceRepositoryCustom
A PreferenceRepository is a Spring Data JPA repository that deals with PreferenceEOs.
Author:
Heiko Scherrer
  • Method Details

    • findBypKey

      Optional<PreferenceEO> findBypKey(String pKey)
    • findByOwnerAndScope

      @Query("select p\n from PreferenceEO p\nwhere (:owner is null or p.owner = :owner)\n and p.scope = :scope\n") List<PreferenceEO> findByOwnerAndScope(@Param("owner") String owner, @Param("scope") PropertyScope scope)
    • findByOwnerAndScopeAndKey

      @Query("select p\n from PreferenceEO p\nwhere (:owner is null or p.owner = :owner)\n and p.scope = :scope\n and p.key = :key\n") Optional<PreferenceEO> findByOwnerAndScopeAndKey(@Param("owner") String owner, @Param("scope") PropertyScope scope, @Param("key") String key)
    • findByOwnerAndScopeAndGroupName

      @Query("select p\n from PreferenceEO p\nwhere (:owner is null or p.owner = :owner)\n and p.scope = :scope\n and p.groupName = :groupName\n") List<PreferenceEO> findByOwnerAndScopeAndGroupName(@Param("owner") String owner, @Param("scope") PropertyScope scope, @Param("groupName") String groupName)