With the tip in Hibernate Reference :
Quote:
create table relationship (
fk_of_foo bigint not null,
fk_of_bar bigint not null,
multiplicity smallint,
created date )
In the class Foo:
Quote:
<set role="relationship">
<key column="fk_of_foo"/>
<composite-element class="Relationship">
<property name="multiplicity" type="short"/>
<property name="created" type="date"/>
<many-to-one name="bar" class="Bar"/>
</composite-element>
</set>
Now, if the "relationship" have a many-to-one with itself.How can i map it?