Create a query using the query language.
Note that you are allowed to add additional clauses using where() as well as use fetch() and setOrderBy() after the query has been created.
Note that this method signature used to map to named queries and that has moved to {@link #createNamedQuery(Class,String)}.
EbeanServer ebeanServer = ... ; String q = "find order fetch details where status = :st"; List<Order> newOrders = ebeanServer.createQuery(Order.class, q) .setParameter("st", Order.Status.NEW) .findList();
@param query the object query