spring-data-jpa-entity-graph:Spring Data JPA扩展允许在存储库上完全动态使用EntityGraph

时间:2021-05-06 17:16:58
【文件属性】:
文件名称:spring-data-jpa-entity-graph:Spring Data JPA扩展允许在存储库上完全动态使用EntityGraph
文件大小:88KB
文件格式:ZIP
更新时间:2021-05-06 17:16:58
orm spring-data jpa spring-data-jpa entity-graph Spring Data JPA实体图 没有spring-data-jpa-entity-graph的生活 仅通过注释支持EntityGraph。 因此,对于存储库方法,必须在编译之前最多选择一个EntityGraph。 这样可以避免您在考虑运行时上下文的情况下选择最佳的EntityGraph :broken_heart: Spring Data JPA实体图的生活 感谢 ,您可以在运行时选择EntityGraph! 通过将EntityGraph作为参数传递给任何Spring Data JPA存储库方法,可以优雅地做出此选择。 :smiling_face_with_heart-eyes: // This will apply 'Product.brand' named EntityGraph to findByLabel productRepository . findByLabel( " foo " , EntityGraphs . named( " Product
【文件预览】:
spring-data-jpa-entity-graph-master
----.travis.yml(249B)
----release.sh(105B)
----pom.xml(6KB)
----core()
--------pom.xml(5KB)
--------src()
----.github()
--------ISSUE_TEMPLATE()
----LICENSE(1KB)
----generator()
--------pom.xml(2KB)
--------src()
----site()
--------settings.xml(1KB)
----doc()
--------MAIN.md(5KB)
----.gitignore(1KB)
----README.md(7KB)

网友评论