public class Query.Selector extends Object
List<Map> data = Contact.all().filter("self.age > ?", 20) .select("title.name", "fullName", "age").fetch(80, 0);This results in following query:
SELECT _title.name, self.fullName JOIN LEFT self.title AS _title WHERE self.age > ? LIMIT 80The
fetch(int, int)
method returns a List of Map instead of the model object.Modifier and Type | Method and Description |
---|---|
List<Map> |
fetch(int limit,
int offset) |
String |
toString() |
List<List> |
values(int limit,
int offset) |