I’ve got two tables (Author and Publicaction). These are connected with a many-to-many-table (Writes) which is automatically generated with Hibernate.
Now I want do hava a query like this:
SELECT * from Publication p, Writes w
WHERE w.authorId = ?;
the method, that should run this query has the Id from the Author-table as an input.
How can I do this in hql?
Thanks!!
Learn about HQL and joins by reading the documentation.