summaryrefslogtreecommitdiffstats
path: root/docs/04_examples.mkd
diff options
context:
space:
mode:
Diffstat (limited to 'docs/04_examples.mkd')
-rw-r--r--docs/04_examples.mkd7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/04_examples.mkd b/docs/04_examples.mkd
index 480e29d..a1273be 100644
--- a/docs/04_examples.mkd
+++ b/docs/04_examples.mkd
@@ -8,6 +8,13 @@ List<Product> allProducts = db.from(p).select();
Customer c = new Customer();
List<Customer> waCustomers = db.from(c). where(c.region).is("WA").select();
+public static class ProductPrice {
+ public String productName;
+ public String category;
+ @IQColumn(name = "unitPrice")
+ public Double price;
+}
+
// select with generation of new anonymous inner class
List<ProductPrice> productPrices =
db.from(p).