If i am using normal query in Mysql getting a correct value .
select c.user_id, c.user_name, f.current_address_id from user_master c join current_address_details f on c.current_address_id = f.current_address_id where user_name like '%Ravi%'; but same if applying in Repository class giving an empty value,
@Query(value = "select c.user_id, c.user_name, f.current_address_id" + " from user_master c join current_address_details f"+ " on c.current_address_id = f.current_address_id where user_name like '%"+":userName"+"%'", nativeQuery = true) List<Object[]> searchUserDetailsByName(@Param("userName") String userName); what i missed in repository class?
Thank you