The popular choice for SQL persistence with a focus on CRUD and simple queries for object loading. more...
The alternative SQL abstraction with a focus on SQL operations and the full expressivity of the SQL standard. more...
ODM support via Morphia or Spring Data for MongoDB, the NoSQL of choice for many. more...
Documentation is also available in the form of blog posts.
List<Person> persons = queryFactory.selectFrom(person) .where( person.firstName.eq("John"), person.lastName.eq("Doe")) .fetch();
List<Person> persons = queryFactory.selectFrom(person) .orderBy(person.lastName.asc(), person.firstName.desc()) .fetch();
List<Person> persons = queryFactory.selectFrom(person) .where(person.children.size().eq( JPAExpressions.select(parent.children.size().max()) .from(parent))) .fetch();
List<Tuple> tuples = queryFactory.select( person.lastName, person.firstName, person.yearOfBirth) .from(person) .fetch();