0

We are using getQuery(@Nullable Specification<T> spec, Pageable pageable) method from Spring class SimpleJpaRepository. This call eventually lands on constructor of PropertyPath. Here property name is decapitalized, this is causing issue in our application. Is there specific reason for this? How can I avoid property name getting decapitalized?

Code flow (inside SpringFramework with JPA)

SimpleJpaRepository.getQuery -> QueryUtils.toOrders -> QueryUtils.toJpaOrders -> QueryUtils.create->PropertyPath.from -> PropertyPath.from -> PropertyPath.create -> PropertyPath.create -> new PropertyPath(source, type, base)

SpringDataJPA version - 2.5.10

M. Deinum
  • 115,695
  • 22
  • 220
  • 224
  • By specifying a different naming strategy. Why are you calling that method anyway, looks like you are working around somethings. Decapitalizing is the default for JPA (and Java for that matter) for fields/properties. So you aren't standard and accepted naming conventions. – M. Deinum Sep 12 '22 at 12:30

0 Answers0