I have two tables: authors and books. Authors has two colums: int id, varchar authorName. Books has three colums: int id, varchar bookName, int authorId.
Now considering that I take the authorName as an input String filtering criteria how can I make hibernate only return the books by that certain author?