java - spring-data Property name with underscore is not escapable as the documentation states -
so i've read spring documentation states when have property names underscore (first_name
) should escape , underscore in query method using underscore (findbyfirst__name(...)
).
however, in practice not work , runtime error stating property first
cannot found. has been documented other devs here:
but none of provided answers addresses fact not working in practice. answers state remove underscore property name.... not easy or possible task. can confirm have gotten work? guess there bug in spring-data reason no 1 has acknowledged or filed bug yet.
is there workaround problem has had success besides renaming database field?
i debugged spring-data-commons 1.9.2.release version , created following pull request since code seems not handle case. further information please review following link:
https://github.com/spring-projects/spring-data-commons/pull/126
read here: https://jira.spring.io/browse/datacmns-569
Comments
Post a Comment