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(...)).

spring data documentation

however, in practice not work , runtime error stating property first cannot found. has been documented other devs here:

link 1 link 2

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

Popular posts from this blog

python - TypeError: start must be a integer -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

html - href attribute breaking an element -