Can somebody help how to compose a HQL query with JPA @Query on the following line?
"get me all books which has this author and are published after year X"
Consider a simple entity without relationship - more concern on the JPA @Query and HQL combination:
@Entity public class Book{ @Id public int id; public String title, public String authorName; public String yearOfPublish; ..... }