Skip to content

Commit

Permalink
Fxied a bug with the JPA authors and books example
Browse files Browse the repository at this point in the history
  • Loading branch information
timperrett committed Aug 29, 2011
1 parent 42bd9a9 commit 99eac7e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter-13/src/main/scala/sample/snippet/Books.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Books {
val current = book
val authors = Model.createNamedQuery[Author]("findAllAuthors").getResultList
val choices = authors.map(author => (author.id.toString -> author.name)).toList
val default = (Box !! book.author).map(_.id.toString) or Empty
val default = Full(Authors.authorVar.is.id.toString)

"type=hidden" #> SHtml.hidden(() => bookVar(current)) &
"name=title" #> SHtml.text(book.title, book.title = _) &
Expand Down
Binary file modified database/chapter_13.h2.db
Binary file not shown.

0 comments on commit 99eac7e

Please sign in to comment.