Basically what I want to do is the following;
To be able to create an Event with three Speakers .
Speakers table has an event_id column which is NULL and NO Default value(NULL).
The only way I can do the insertions is by setting insert="false" update="false" in the speakers hbm.
I want to be able to update the speaker's event_id after it was inserted. So leaving the update="false" doesn't work for me.
The problem is that if I change the update to "true" then I'm not able to insert Events or Speakers anymore and I get the following error:
Repeated column in mapping for entity: com.manning.hq.ch04.Speaker column: event_id (should be mapped with insert="false" update="false")
How can I achieve that?