Mapping by code, "property-ref" and "not-found" in ManyToOne()
33 views
Skip to first unread message
Nicolás Sabena
unread,
Aug 1, 2011, 10:42:57 AM8/1/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nhusers
Hi. I am trying to convert a few mappings to NH 3.2's mapping by code.
I cannot find the way to indicate what was done with the "property-
ref" and "not-found" attributes in a ManyToOne() relationship.
Eg:
<many-to-one
name="Client"
column="cCode"
property-ref="ClientCode" // the non-id column to use in the join
not-found="ignore"
/>