Hello Pasha!
If you read the chapter 1 ,
http://www.hibernate.org/hib_docs/v3/re ... orial.html .
Then you can see that there is no 'persons' in the Class Event.
Please check the example in ch1. again.
The only mapping is the following:
Code:
<class name="events.Person" table="PERSON">
<id name="id" column="PERSON_ID">
<generator class="native"/>
</id>
<property name="age"/>
<property name="firstname"/>
<property name="lastname"/>
<set name="events" table="PERSON_EVENT">
<key column="PERSON_ID"/>
<many-to-many column="EVENT_ID" class="events.Event"/>
</set>
</class>
is your suggestion that I create a 'Set person' in the Event-Class and
change the mapping in event.hbm.xml.
Please ge back to me and explain.
regards, i