I am using Hibernate 2.1.
I am wondering how to write an HQL query that takes a HashMap relationship I have set up at the object level into consideration.
For example I have a map defined in my xdoclet as follows:
Code:
/**
* @hibernate.map table="ed_landing_page_article" cascade="none" lazy="false"
* @hibernate.collection-key column="ed_landing_page_id"
* @hibernate.index-many-to-many column="ed_landing_page_bucket_id" class="com.edmunds.editorial.model.LandingPageBucket"
* @hibernate.collection-many-to-many column="article_id" class="com.edmunds.editorial.model.Article"
* @hibernate.collection-cache usage="read-write" */
public Map getArticleMap() {
return articleMap;
}
How can I use the articleMap in my HQL query to do a join to another object that is the actual key within this map. My key is a LandingPageBucket object. How can I join these 2 objects via HQL?
Regards.