Skip to content

The result of PropertyPath.from is incorrect in some cases [DATACMNS-1137] #1579

Open
@spring-projects-issues

Description

@spring-projects-issues

kizimini opened DATACMNS-1137 and commented

classes:
Dept{String name}
User{String name, Dept dept}
Address{String address, User user}

Repository:
findByUser_Dept_Name(String deptName) //correct
findByUserDeptName(String deptName) //correct
findByUserDept_Name(String deptName) //incorrect

PropertyPath:
PropertyPath.from("UserDept_Name", Address.class) // Address.user.name (incorrect)


Referenced from: pull request spring-projects/spring-boot#9962

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions