I have a class called Profile and its JPA repository ProfileRepo I'm trying to use findBy method to find names using first name or middle name or last name and also using containing clause.
public class Profile{
private String firstName;
private String middleName;
private String lastName;
//getters and setters
}
Am using the following query in the JPA repository but it is not accepting the method
List<Profile> findByLastNameContainingOrFirstNameContainingOrMiddleNameContainingAllIgnoreCase(String firstName,
String lastName,String midName);
Kindly help out.
Try this:
or this: