当前位置: 首页>>代码示例>>Java>>正文


Java EntityGraph类代码示例

本文整理汇总了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);
 
开发者ID:xm-online,项目名称:xm-uaa,代码行数:3,代码来源:UserRepository.java

示例2: findOneWithLoginsByUserKey

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "logins")
Optional<User> findOneWithLoginsByUserKey(String userKey);
 
开发者ID:xm-online,项目名称:xm-uaa,代码行数:3,代码来源:UserRepository.java

示例3: findOneWithAuthoritiesAndLoginsByUserKey

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = {"logins", "authorities"})
Optional<User> findOneWithAuthoritiesAndLoginsByUserKey(String userKey);
 
开发者ID:xm-online,项目名称:xm-uaa,代码行数:3,代码来源:UserRepository.java

示例4: findAll

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@Override
@EntityGraph(attributePaths = {"logins", "authorities"})
Page<User> findAll(Pageable pageable);
 
开发者ID:xm-online,项目名称:xm-uaa,代码行数:4,代码来源:UserRepository.java

示例5: findOneWithAuthoritiesByLogin

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
Optional<User> findOneWithAuthoritiesByLogin(String login);
 
开发者ID:oktadeveloper,项目名称:jhipster-microservices-example,代码行数:3,代码来源:UserRepository.java

示例6: findPostById

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = {"tags"})
Optional<Post> findPostById(Long id);
 
开发者ID:yuexine,项目名称:loafer,代码行数:3,代码来源:PostRepository.java

示例7: findOneWithAuthoritiesById

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
Optional<User> findOneWithAuthoritiesById(Long id);
 
开发者ID:torgcrm,项目名称:TorgCRM-Server,代码行数:3,代码来源:UserRepository.java

示例8: findOneWithAuthoritiesByLogin

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
@Cacheable(cacheNames = USERS_BY_LOGIN_CACHE)
Optional<User> findOneWithAuthoritiesByLogin(String login);
 
开发者ID:torgcrm,项目名称:TorgCRM-Server,代码行数:4,代码来源:UserRepository.java

示例9: findOneWithAuthoritiesByEmail

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
@Cacheable(cacheNames = USERS_BY_EMAIL_CACHE)
Optional<User> findOneWithAuthoritiesByEmail(String email);
 
开发者ID:torgcrm,项目名称:TorgCRM-Server,代码行数:4,代码来源:UserRepository.java

示例10: findOneById

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(value = "xmEntityGraph", type = EntityGraph.EntityGraphType.LOAD)
XmEntity findOneById(Long id);
 
开发者ID:xm-online,项目名称:xm-ms-entity,代码行数:3,代码来源:XmEntityRepository.java

示例11: findOneWithAuthoritiesByLogin

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
@Cacheable(cacheNames="users")
Optional<User> findOneWithAuthoritiesByLogin(String login);
 
开发者ID:asanzdiego,项目名称:codemotion-2017-taller-de-jhipster,代码行数:4,代码来源:UserRepository.java

示例12: findOneWithAuthoritiesByLogin

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(attributePaths = "authorities")
@Cacheable(cacheNames = "users")
Optional<User> findOneWithAuthoritiesByLogin(String login);
 
开发者ID:pascalgrimaud,项目名称:qualitoast,代码行数:4,代码来源:UserRepository.java

示例13: findByName

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(value = "Publisher.full", type = EntityGraphType.LOAD)
Optional<Publisher> findByName(String name);
 
开发者ID:quanticc,项目名称:ugc-bot-redux,代码行数:3,代码来源:LegacyPublisherRepository.java

示例14: findByAddress

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(value = "GameServer.detail", type = EntityGraphType.LOAD)
Optional<GameServer> findByAddress(String address);
 
开发者ID:quanticc,项目名称:ugc-bot-redux,代码行数:3,代码来源:LegacyGameServerRepository.java

示例15: findByAddressStartingWith

import org.springframework.data.jpa.repository.EntityGraph; //导入依赖的package包/类
@EntityGraph(value = "GameServer.detail", type = EntityGraphType.LOAD)
Optional<GameServer> findByAddressStartingWith(String address);
 
开发者ID:quanticc,项目名称:ugc-bot-redux,代码行数:3,代码来源:LegacyGameServerRepository.java


注:本文中的org.springframework.data.jpa.repository.EntityGraph类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。