I have underscores in the entity property names, and when Spring tries to create the JPA repository implementation, it results in an exception trying to resolve the name of
If you cant change the entities which was my case then better use jqpl query or native sql query on top of repository method
@Query("select s from Student s where s.s_name=?") List findBySName();