Skip to content

PropertyPath is created wrong for property with uppercase letters at the end [DATACMNS-1304] #1713

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

Closed
spring-projects-issues opened this issue Apr 24, 2018 · 1 comment
Assignees
Labels
in: repository Repositories abstraction type: bug A general bug

Comments

@spring-projects-issues
Copy link

Mariusz Mączkowski opened DATACMNS-1304 and commented

Uppercase letters at the end of property are cutted now what is inconsistent with finding the longest property name first.

Example:

interface Product {

       ...

       Category getCategoryB(); // contains single uppercase letter at the end

       Category getCategoryAB(); // contains uppercase letters at the end
}

interface Category {

   Long getId();

   ...
}

In this case, parsing method names

findByCategoryBId 

and

findByCategoryABId 

causing an exception.
 


Affects: 2.1 M2 (Lovelace), 1.13.12 (Ingalls SR12), 2.0.7 (Kay SR7)

Issue Links:

  • DATACMNS-1570 Parsing of query method names is inconsistent for attributes beginning with a single lower case character followed by an upper case character

Referenced from: pull request #289

Backported to: 2.0.8 (Kay SR8), 1.13.13 (Ingalls SR13)

@spring-projects-issues
Copy link
Author

Mariusz Mączkowski commented

Here are my fix pull request proposal #289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: repository Repositories abstraction type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants