Skip to content

Instantly share code, notes, and snippets.

@oehme
Last active December 20, 2015 06:39
Show Gist options
  • Save oehme/6087325 to your computer and use it in GitHub Desktop.
Save oehme/6087325 to your computer and use it in GitHub Desktop.
val p = QPerson.person
val persons = db.from(p)
.where(
(p.firstName <= "C" || p.lastName >= "T")
&& p.age > 18
&& p.gender == Gender.FEMALE
)
.orderBy(p.firstName.asc)
.list(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment