Skip to content

Instantly share code, notes, and snippets.

@craigew
Created September 28, 2013 13:46
Show Gist options
  • Save craigew/6742245 to your computer and use it in GitHub Desktop.
Save craigew/6742245 to your computer and use it in GitHub Desktop.
Query methods on Customer
public List<Customer> returnAllCustomers() {
return queryString("SELECT e FROM Customer e");
}
public List<Customer> returnCustomersForACountry(String country) {
return queryString("SELECT e FROM Customer e WHERE e.residentialAddress.country='" + country + "'");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment