I was reading the nhibernate reference guide to figure out how to map a
table where a column is a certain value and i ran across this:5.1.3. class
You may declare a persistent class using the class element:
class
name=ClassName (1)
table=tableName
fabioma...@gmail.com wrote:
2009/6/26 ike bailey vanilla...@gmail.com
This example shows how to map multiple tables, but it assumes that the
address_id maps to the person_id. I would like to map the address_id of the
address table to the address_id of the person table
Which is the name
When setting up a mapping file where I need to join multiple tables, is
there any way to specify which columns to join on?
class name=Person
id name=Id column=person_id unsaved-value=0
generator class=native/
/id
property name=Name/
property
Nhibernate tries to map person_id to that column.
On Fri, Jun 26, 2009 at 2:58 PM, James Gregory jagregory@gmail.comwrote:
What happens when you change column=address_id to something else?
On Fri, Jun 26, 2009 at 8:54 PM, ike bailey vanilla...@gmail.com wrote:
When setting up a mapping