Skip to content

Commit

Permalink
Docs: fixed error in code sample (from Disqus comment by Ray)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hilton committed Jun 2, 2011
1 parent 0d18659 commit d04765f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/manual/overview.textile
Original file line number Diff line number Diff line change
@@ -88,7 +88,7 @@ The Java Persistence API (JPA) is the cleanest object-relational mapping ORM) AP

Moreover if you use the provided **play.db.jpa.Model** superclass it will help make your code prettier. Have a look:

bc. public void messages(int page) {
bc. public static void messages(int page) {
User connectedUser = User.find("byEmail", connected()).first();
List<Message> messages = Message.find(
"user = ? and read = false order by date desc",

0 comments on commit d04765f

Please sign in to comment.