Well, as the IssoedTo property of Tbale1 class is mentioned in hbm map, it is transient.
If You really need IssuedTo int property in Table1, then You have couple of options. But in normal situation You should not deal with Id refrences at class level... as You have object references already.
1. as suggested earlier by NHibernate:
Padmavathy wrote:
{"Repated column in mapping for class Core.Table1 should be mapped with insert="false" update="false": IssuedTo"} exception
add a line to table1.xml.hbm:
<property name="IssuedTo" column="IssuedTo" type="int" insert="false" update="false" />
alternatively
2. Make the IssuedTo (or Table2) property calculated, with code:
public int IssuedTo
{
get { return this.Table2.UID; }
// set { this.Table2 = (table2)someSession.GetObject(typeof(table2), value); }
}