Hi Guys, i'm having a problem with the following mapping; keeps saying
"Index 6 invalid for SqlParamterCollection with count=6" whenever i'm updating
an user. I would be much apreciated if you guys could help me.
<class name="Users" table="Users">
<id name="Id">
<column name="usId" sql-type="int" not-null="true"/>
<generator class="identity" />
</id>
<property name="UsName">
<column name="name" length="255" />
</property>
<property name="Password">
<column name="password" length="255" />
</property>
<property name="UsLogin">
<column name="login" length="255" />
</property>
<property name="UsIsAdmin">
<column name="isAdmin" sql-type="int" />
</property>
<property name="Clients_id">
<column name="clients_id" sql-type="int" />
</property>
<set name="Modules" table="ModulesByUser" inverse="true" lazy="true">
<key>
<column name="usId" not-null="true"/>
</key>
<many-to-many class="Modules">
<column name="id" not-null="true"/>
</many-to-many>
</set>
<set name="Projects" table="ProjectsByUser" >
<key>
<column name="usId" not-null="true"/>
</key>
<many-to-many class="Project" >
<column name="idProject" not-null="true"/>
</many-to-many>
</set>
<many-to-one name="Client" column="clients_id" class="Client" />
</class>
--
Fausto Lorenzato
Computer Engineering Undergraduate
University of Pernambuco
Stefanini Document Solutions Developer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---