No tienes acceso a esta clase

¡Continúa aprendiendo! Únete y comienza a potenciar tu carrera

Query Methods: Contains, Not

12/25
Recursos

Aportes 7

Preguntas 2

Ordenar por:

¿Quieres ver más aportes, preguntas y respuestas de la comunidad?

Los Query Methods son una locura! 🔥

Los Query methods son lo mas bello que he visto en mi vida.
Que esperamos para mas cursos de Java

Comparto otros metodos derivados

public List<EmployeeEntity> findByCommissionPctIsNull();
	
	public List<EmployeeEntity> findByCommissionPctIsNotNull();
	
	public List<EmployeeEntity> findByFirstNameStartingWith(String inicio);
	
	public List<EmployeeEntity> findByLastNameEndingWith(String fin);
	
	public List<EmployeeEntity> findByFirstNameContaining(String cadena);
	
	//public List<EmployeeEntity> findByFirstNameLike(String like);
	
	public List<EmployeeEntity> findByLastNameLike(String like);
	
	public List<EmployeeEntity> findByFirstNameStartingWithAndLastNameLike(String inicio, String like);
	
	public List<EmployeeEntity> findByFirstNameStartingWithOrLastNameStartingWith(String inicioFirstName, String inicioLastName);
	
	public List<EmployeeEntity> findBySalaryLessThan(Double salary);//<
	public List<EmployeeEntity> findBySalaryLessThanEqual(Double salary); //<=
	
	public List<EmployeeEntity> findBySalaryGreaterThan(Double salary);//>
	
	public List<EmployeeEntity> findBySalaryBetween(Double min, Double max);
	
	//public List<EmployeeEntity> findByJobIdIn(List<String> jobIds);
	
	public List<EmployeeEntity> findByHireDateAfter(LocalDate hireDateAfter);
	
	public List<EmployeeEntity> findByHireDateBefore(LocalDate hireDateBefore);
	
	public List<EmployeeEntity> findByOrderBySalary();//Asc
	public List<EmployeeEntity> findByOrderBySalaryAsc();//Asc
	public List<EmployeeEntity> findByOrderBySalaryDesc();//Desc
	
	public List<EmployeeEntity> findByFirstNameLike(String expresion);
	
	public List<EmployeeEntity> findByFirstNameEndingWithAndLastNameEndingWith(String first, String last);
	public List<EmployeeEntity> findByFirstNameStartingWithAndLastNameEndingWith(String first, String last);
	
	
	//public List<EmployeeEntity> findByDepartmentIdInAndSalaryGreaterThan(List<Integer> depId, Double salary);
//	public List<EmployeeEntity> findByDepartmentIdIn(List<Integer> depId);
	
	//public List<EmployeeEntity> findByHireDateAfterOrderByHireDateAsc(LocalDate hireDateAfter);
	//public List<EmployeeEntity> findByHireDateAfter(LocalDate hireDateAfter);
	
	public  List<EmployeeEntity> findByCommissionPctIsNotNullAndSalaryBetweenOrderBySalaryDesc(Double min, Double max);
	
	
	public List<EmployeeEntity> findByOrderByFirstNameAscLastNameDesc();
	
	public List<EmployeeEntity> findByCommissionPctIsNotNullAndSalaryBetween(Double min, Double max);
	
	public List<EmployeeEntity> findByCommissionPctIsNullAndSalaryGreaterThanOrderBySalaryDesc(Double salaryMin);

Es necesario tener ntelliJ IDEA Ultimate para que pueda ejecutar los Query Methods? nosé si el error que me sale es por tener la versión Community
Los query methods te ahorran un montón de trabajo!

Jure que no me enamoraría más y aparecen estos Query Methods ❤️

Yo uso Apache NetBeans y vamos al 100 ;,)