Cosium / spring-data-jpa-entity-graph

Spring Data JPA extension allowing full dynamic usage of EntityGraph on repositories
MIT License
469 stars 52 forks source link

Added EntityGraphUtils.fromAttributePaths #4

Closed goulashify closed 7 years ago

goulashify commented 7 years ago

Added a fromAttributePaths(String...) static to EntityGraphUtils which works similarly to Spring's ad-hoc queries (see 60th example and readme.md diff). It resolves issue #3.

codecov-io commented 7 years ago

Codecov Report

Merging #4 into master will increase coverage by 2.42%. The diff coverage is 100%.

@@             Coverage Diff              @@
##             master       #4      +/-   ##
============================================
+ Coverage     75.28%   77.71%   +2.42%     
- Complexity        0      103     +103     
============================================
  Files            20       20              
  Lines           348      350       +2     
  Branches         49       40       -9     
============================================
+ Hits            262      272      +10     
+ Misses           70       64       -6     
+ Partials         16       14       -2
Impacted Files Coverage Δ Complexity Δ
...data/jpa/entity/graph/domain/EntityGraphUtils.java 85.71% <100%> (+2.38%) 5 <1> (+5) :white_check_mark:
.../support/RepositoryMethodEntityGraphExtractor.java 86.07% <0%> (+2.53%) 9% <0%> (+9%) :white_check_mark:
...a/jpa/entity/graph/domain/AbstractEntityGraph.java 57.14% <0%> (+4.76%) 5% <0%> (+5%) :white_check_mark:
...ta/jpa/entity/graph/domain/DynamicEntityGraph.java 45.45% <0%> (+45.45%) 3% <0%> (+3%) :white_check_mark:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8c91188...0fad65d. Read the comment docs.

reda-alaoui commented 7 years ago

Great work Dan. Thanks !