tenwit wrote:
Looks like strangeness with inverse="true". The way you've set up your mapping, Document-Move is the "master", but won't create a Doc and a Move because you have insert/update = false. It's probable that you want to turn inverse="true" off for the DocMoves set in Document. That makes Document the "master": so long as you save the Move before the Document, the Document-Move will be created for you.
The reason I put the insert/update in false is because when I removed it I got an NHibernate error. Could you please explain me more about the inverse="true" . The way I see it the Master in the relation is the Doc. What changes should I do??? Is the composite-id ok???