Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.18 KB

README.md

File metadata and controls

33 lines (22 loc) · 1.18 KB

Spring Boot Application with JPA, REST, Audit (Envers), Lombok and QueryDsl

Employee and Phone example is taken from Java Persistence wikibook.

Executed query

	public Iterable<Employee> findEmployeesByPhoneNumber(String phoneNumber) {
		return repository.findAll(employee.phones.any().number.contains(phoneNumber));
	}

IntelliJ Idea configuration:

  • Go to Preferences -> Build, Execution, Deployment -> Annotation Processors;
  • Check Enable annotation processing checkbox;
  • In "Store generated sources relative to:" select Module content root.

Workarounds

  • package-info.java is required, for Revision.java to compile.

Links