Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# isidro 4/2/2008 5:41 PM
I'm building a new module and I’m stuck with a class in my domain that has a composite-id. Here’s part of the mapping file

< composite-id name="_Id" >
< key-property name="_TEquipamentoId" column="T_Equipamento_ID" type="Int32" / >
< key-property name="_TVeiculoId" column="T_Veiculo_ID" type="Int32" / >
< / composite-id>

…

I’m always getting this error:

collection foreign key mapping has wrong number of columns: Cuyahoga.Modules.IsiWebAuto.Domain.TVeiculoEquipamento._ListTVeiculoEquipamento type: IdTVeiculoEquipamento


Does anyone know how can I solve it? I’ve been reading that composite-ids are now that well behaviored, but I’ve used in some projects (not Cuyahoga) with success so I would like to use them here too.

Best regards,
Rui Isidro
# martijnb 4/3/2008 5:58 PM
No idea what goes wrong, I don't have any experience with composite ID's. But I think you can better try the NHibernate forum for these kinds of questions. Cuyahoga hasn't really much to do with this.