Hi alls,
I'm using 2.1rc from CVS and Ehcache provider.
I have such class
Code:
/**
* @hibernate.class table="feedback_category"
* mutable="true" dynamic-update="true"
* @hibernate.jcs-cache usage="read-write"
*/
public class FeedbackCategory {
.....
/**
* @return
* @hibernate.bag inverse="true"
* table="feedback_category"
* lazy="false"
* cascade="all"
* order-by="position"
* @hibernate.jcs-cache usage="read-write"
* @hibernate.collection-key column="fee_category_id"
* @hibernate.collection-one-to-many class="com.clearview.feedback.db.report.FeedbackCategory"
*/
public List getChildren() {
return children;
}
public void setChildren(List children) {
this.children = children;
}
/**
* @return
* @hibernate.property column="position"
* not-null="true"
* unique="false"
*/
public int getPosition() {
return position;
}
public void setPosition(int position) {
this.position = position;
}
............
}
When i change position in root category, than changes are seen. But when i change position in child, than changes are seen in DB, but aren't seen in Hibernate. I can make it working only disabling hibernate.jcs-cache on children collection.
Is it possible caching colelction and when data are changed, user can see it too.
Thank's