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