本文整理汇总了Java中org.springframework.data.jpa.repository.EntityGraph类的典型用法代码示例。如果您正苦于以下问题:Java EntityGraph类的具体用法?Java EntityGraph怎么用?Java EntityGraph使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EntityGraph类属于org.springframework.data.jpa.repository包,在下文中一共展示了EntityGraph类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findOneWithAuthoritiesById
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
User findOneWithAuthoritiesById(Long id);
示例2: findOneWithLoginsByUserKey
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "logins")
Optional<User> findOneWithLoginsByUserKey(String userKey);
示例3: findOneWithAuthoritiesAndLoginsByUserKey
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = {"logins", "authorities"})
Optional<User> findOneWithAuthoritiesAndLoginsByUserKey(String userKey);
示例4: findAll
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@Override
@EntityGraph(attributePaths = {"logins", "authorities"})
Page<User> findAll(Pageable pageable);
示例5: findOneWithAuthoritiesByLogin
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
Optional<User> findOneWithAuthoritiesByLogin(String login);
示例6: findPostById
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = {"tags"})
Optional<Post> findPostById(Long id);
示例7: findOneWithAuthoritiesById
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
Optional<User> findOneWithAuthoritiesById(Long id);
示例8: findOneWithAuthoritiesByLogin
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
@Cacheable(cacheNames = USERS_BY_LOGIN_CACHE)
Optional<User> findOneWithAuthoritiesByLogin(String login);
示例9: findOneWithAuthoritiesByEmail
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
@Cacheable(cacheNames = USERS_BY_EMAIL_CACHE)
Optional<User> findOneWithAuthoritiesByEmail(String email);
示例10: findOneById
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(value = "xmEntityGraph", type = EntityGraph.EntityGraphType.LOAD)
XmEntity findOneById(Long id);
示例11: findOneWithAuthoritiesByLogin
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
@Cacheable(cacheNames="users")
Optional<User> findOneWithAuthoritiesByLogin(String login);
示例12: findOneWithAuthoritiesByLogin
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
@Cacheable(cacheNames = "users")
Optional<User> findOneWithAuthoritiesByLogin(String login);
示例13: findByName
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(value = "Publisher.full", type = EntityGraphType.LOAD)
Optional<Publisher> findByName(String name);
示例14: findByAddress
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(value = "GameServer.detail", type = EntityGraphType.LOAD)
Optional<GameServer> findByAddress(String address);
示例15: findByAddressStartingWith
import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(value = "GameServer.detail", type = EntityGraphType.LOAD)
Optional<GameServer> findByAddressStartingWith(String address);