Duplicated columns even with insert/update = false breaks the
schemaexport which is right though.


2011/2/4, Fabio Maulo <[email protected]>:
> Please add a JIRA ticket for a possible improvement.
> Catch the exception at INSERT/UPDATE : Wrong amount of parameter during
> INSERT/UPDATE (possible cause: duplicated property/column names in the
> mapping) of <the-class>. Solution: remove the duplicated property/column or
> add the appropriate tag/s (insert='fase' and/or  update='false'.
>
> Thanks.
>
> On Fri, Feb 4, 2011 at 7:27 AM, Petrander <[email protected]> wrote:
>
>> Aaargh! It was so much on a wrong leg with this infamous “Invalid
>> Index n for this SqlParameterCollection with Count=n” error that I
>> overlooked the obvious: A duplicate mapping of a field for ONE of the
>> classes.
>> In that particular mapping I left this error, where the primary key is
>> also defined as a property:
>>
>>     <id name="ID" column="ID">
>>       <generator class="guid" />
>>     </id>
>>     <property name="ID" column="ID" />
>>
>> Now that was a waste of time trying to debug that looking in all the
>> wrong places!
>>
>> --
>> 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]<nhusers%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>>
>
>
> --
> Fabio Maulo
>
> --
> 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.
>
>

-- 
Enviado desde mi dispositivo móvil

-- 
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.

Reply via email to