I just wanted to know how to pass column name and its value to @Query annotation in Spring Data JPA.
Basically column names will be static and we used to put every c
You can use nativeQuery=true like this..
nativeQuery=true
@Query(value = "select c from Calendar c where c.:calendarDay=:value", nativeQuery = true) List getPersonName(@Param("calendarDay") String calendarDay, @Param("value") String value);