posted 18 years ago
Hi all,
I really tried to find this issue, but I'm not sure if it was post before. So...
I wanna make an association one-to-many on fields into same table. Eg.
TableCategory
ID --- PARENTID --- NAME
1 0 Books
2 1 Admin. Books
3 2 Marketing Books
Is it possible?
I try to do this via code below, but I'm getting the following error: "Same logical column name referenced several times"
<class name="Category" ...>
<set name="childCategories">
<key column="parent_id" not-null="true" />
<one-to-many class="Category" />
</set>
Thanks,