Question :
In your RDBM, can you have two columns with the same name where one is the
PK and other is a FK to another table ?

On Wed, Aug 18, 2010 at 7:03 AM, osman nuri katib
<[email protected]>wrote:

> here is my mapping:
>
> <hibernate-mapping namespace="RYS.Model" assembly="RYS"
> xmlns="urn:nhibernate-mapping-2.2">
>  <class name="RevisionInsurance" lazy="true" table="`REVISION_INSURANCE`"
> schema="`dbo`">
>   <id name="Fid" access="property" column="`FID`">
>    <generator class="assigned" />
>   </id>
>   <property name="DamageDate" column="`DAMAGE_DATE`" />
>   <property name="DamageFileNumber" column="`DAMAGE_FILE_NUMBER`"
> length="32" />
>   <property name="InsurancePolicyNumber" column="`INSURANCE_POLICY_NUMBER`"
> length="32" />
>   <property name="Notes" column="`NOTES`" length="1000" />
>   <property name="RowCreationDate" column="`ROW_CREATION_DATE`" />
>   <property name="RowCreatorId" column="`ROW_CREATOR_ID`" />
>   <property name="RowLockDate" column="`ROW_LOCK_DATE`" />
>   <property name="RowLockState" column="`ROW_LOCK_STATE`" />
>   <property name="RowLockUserId" column="`ROW_LOCK_USER_ID`" />
>   <property name="RowUpdateDate" column="`ROW_UPDATE_DATE`" />
>   <property name="RowUpdaterId" column="`ROW_UPDATER_ID`" />
>   <property name="RowUsageState" column="`ROW_USAGE_STATE`" />
>   <many-to-one name="Revision" class="Revision" column="`FID`"
> not-null="true" unique="true" fetch="select" />
>   <many-to-one name="User" class="User" column="`SURVEYOR_USER_ID`"
> not-null="true" fetch="select" />
>  </class>
> </hibernate-mapping>
>
> Cause of declaring FID twice , I'm getting an error: *Error Invalid index
> N for this SqlParameterCollection with Count N*
> **
> Any solution?
>
> --
> 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.

Reply via email to