diff options
author | James Moger <james.moger@gitblit.com> | 2014-10-22 21:56:32 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-10-22 22:29:05 -0400 |
commit | 0c76b61f7c0873567507a705726cf86b58e0e59e (patch) | |
tree | 82f4f320d5b7857dc321ab07a439dd204c9b2f1d /src/site/usage.mkd | |
parent | c7b36b245d619206dbac00873c8deb7c0681bbe4 (diff) | |
download | iciql-0c76b61f7c0873567507a705726cf86b58e0e59e.tar.gz iciql-0c76b61f7c0873567507a705726cf86b58e0e59e.zip |
Documentation
Diffstat (limited to 'src/site/usage.mkd')
-rw-r--r-- | src/site/usage.mkd | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/src/site/usage.mkd b/src/site/usage.mkd index b09f91b..21c262e 100644 --- a/src/site/usage.mkd +++ b/src/site/usage.mkd @@ -82,25 +82,13 @@ final Customer model = new Customer(); // AND (
// region = 'LA' OR region = 'CA'
// )
-List<Customer> regionals =
- db.from(model)
- .where(model.customerId).isNotNull()
- .and(model.region).isNotNull()
- .and(new Or<Customer>(db, model) {{
- or(model.region).is("LA");
- or(model.region).is("CA");
- }});
-
-List<Customer> regionalType1s =
- db.from(model)
- .where(new And<Customer>(db, model) {{
- and(model.type).is(1);
- and(new Or<Customer>(db, model) {{
- or(model.region).is("CA");
- or(model.region).is("LA");
+List<Customer> regionals = db.from(model)
+ .where(model.customerId).isNotNull()
+ .and(model.region).isNotNull()
+ .and(new Or<Customer>(db, model) {{
+ or(model.region).is("LA");
+ or(model.region).is("CA");
}});
- }});
-
---JAVA---
### Finding Matches for a List of Values
|