Object Query

Overview

What Is

Object Query is a simple query builder thought for java, that allow to write typesafe and refactor resistant query, without bound to persistence engine.


SelectQuery<Person> query = new GenericSelectQuery<Person>(Person.class);
Person toSearch = query.target();
query.prj(toSearch.getName());
query.eq(toSearch.getMum().getName(),"elisabeth");
query.gt(toSearch.getAge(),20);
query.order(toSearch.getName());

License

The Apache Software License, Version 2.0