Hi I'm looking for some help in mapping the following tables to a hibernate mapping file: schema image http://barry-jones.com/temp/sch2.jpg
I'm trying to fill the localCalandarGroups List with related localCalendarGroups when loading my userVOs. I'm using a intermediary table(user_localCalendarGroup) to keep the user and localCalendarGroup ids
public class UserVO { public virtual int id { get; set; } public virtual string name { get; set; } public virtual string pass { get; set; } public virtual string email { get; set; } public virtual string level { get; set; } public virtual List<LocalCalendarGroupVO> localCalendarGroups { get; set; } } public class LocalCalendarGroupVO { public virtual int id { get; set; } public virtual string name { get; set; } } This is my mapping file thus far. How can I make NHibernate aware of the intermediary table?
<class name="UserVO" table="tb_users" lazy="false"> <id name="id" column="id"> <generator class="native" /> </id> <property name="name" /> <property name="pass" /> <property name="level" /> <property name="email" /> <property name="localCalendarGroups"/> Any help,pointers much appreciated.