Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature support join by custom id name #133

Merged
merged 2 commits into from
Sep 15, 2022

Conversation

agrancaric
Copy link
Collaborator

@agrancaric agrancaric commented Sep 14, 2022

Basic information

  • nrich version:
    1.4.2
  • Module:
    nrich-search

Additional information

Description

Summary

Currently, only joining by a property named id is supported when using a subquery. We are adding support for joining by any property annotated with @Id annotation.

Details

Currently, only joining by a property named id is supported when using a subquery. There are cases when we have a property with a different name representing the identity column. Because of that, we are adding support for joining by any property annotated with @Id annotation.

Related issue

Types of changes

  • Enhancement (non-breaking change which enhances existing functionality)

Checklist

  • I have read the project's CONTRIBUTING document
  • I have checked my code with the project's static analysis tooling
  • I have formatted my code with the project's IDEA code-style configuration
  • I have checked my code for misspellings
  • I have organized my changes in easy-to-follow commits
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests pass.

@codecov
Copy link

codecov bot commented Sep 14, 2022

Codecov Report

Base: 96.64% // Head: 96.64% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (f711e6e) compared to base (09a56e0).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #133   +/-   ##
=========================================
  Coverage     96.64%   96.64%           
  Complexity     1075     1075           
=========================================
  Files           157      156    -1     
  Lines          2532     2534    +2     
  Branches        233      233           
=========================================
+ Hits           2447     2449    +2     
  Misses           32       32           
  Partials         53       53           
Impacted Files Coverage Δ
...net/croz/nrich/search/support/JpaQueryBuilder.java 96.64% <100.00%> (+0.06%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@agrancaric agrancaric force-pushed the feature_supportJoinByCustomIdName branch 3 times, most recently from bdd42cc to 8cdaae2 Compare September 14, 2022 11:27
@agrancaric agrancaric force-pushed the feature_supportJoinByCustomIdName branch from 8cdaae2 to f711e6e Compare September 14, 2022 11:32
@jzrilic jzrilic added the enhancement New feature or request label Sep 15, 2022
@jzrilic jzrilic added this to the v1.4.3 milestone Sep 15, 2022
@jzrilic jzrilic merged commit fafc009 into master Sep 15, 2022
@jzrilic jzrilic deleted the feature_supportJoinByCustomIdName branch September 15, 2022 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants