So I have 2 entities:
Article
Category
And I have a table that relates the articleID and categoryID:
articles_categories
-articleID
-categoryID
I am using xml for my mappings, what should I do here?
I want to be able to query for all articles in a given category.
Use many to many mapping:
You should be able to query like a normal collection.