Joined: Sun Apr 06, 2008 2:49 pm Posts: 17
|
|
Hi,
I have a class:
A{
private long objectID;
private IList<B> children;
//public getters and setters
}
B{
private long objectID
private string comment
private A parent;
private int B_index;
//plus public getters and setters
}
A mapping:
<list inverse="true" lazy="true" name="ChildrenList" table="DB_B">
<key column="parent_id"/>
<index column="B_index"/>
<one-to-many
class="B"/>
</list>
b MAPPING:
<property name="B_index" type="int32"/>
<many-to-one name="Parent" class="A" column="parent_id" />
while creating A i don't increment the B_index by myself
the problem is that it is always zero and it seems it should increment itself???
|
|