Im using Indexed parameters to pass values into native query JPA. How to change logging so I can see the actual values passed into query printed in the console? Currently values are not shown, only ?
:
org.hibernate.SQL : select * from car_records where carVinNo = ?
query
public interface CarRepository extends JpaRepository<Car, String> {
@Query(nativeQuery = true,
value = "select * from car_records where carVinNo >= ?1")
}
List<Car> retrieveCars(Long startRegTs);
I tried to config yml as suggested in other posts but nothing works so far.
logging:
level:
org.hibernate.SQL: DEBUG
org.hibernate.type: TRACE