Hi, Having a little trouble trying to map a many-to-one relationship where a composite key is required. The error I'm getting says something about using update="false" insert="false" but these attributes are not valid in NHibernate.
The troubled mapping is:
<class name="SITO.Entity.TrainingUnitStandardAssessor, SITO.Entity" table="Training_Unit_Standard_Assessor">
<composite-id>
<key-many-to-one name="ThisTraining" column="Training_ID" class="SITO.Entity.Training, SITO.Entity" />
<key-many-to-one name="ThisTrainingUnitStandard" column="Training_ID" class="SITO.Entity.TrainingUnitStandard, SITO.Entity" >
<column name="Training_ID" />
<column name="Unit_Standard_ID" />
</key-many-to-one>
<key-many-to-one name="ThisAssessor" column="Assessor_ID" class="SITO.Entity.RegisteredAssessor, SITO.Entity" />
</composite-id>
</class>
<!-- End of: Mapping for Training_Unit_Standard_Assessor -->
Any suggestions? (hopefully, just looking at the data model and their are plenty more (3 keys)).
|