[nhusers] Where clause in mapping

2009-07-01 Thread ike bailey
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

[nhusers] Re: Mapping multiple tables

2009-06-29 Thread ike bailey
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

[nhusers] Mapping multiple tables

2009-06-26 Thread ike bailey
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

[nhusers] Re: Mapping multiple tables

2009-06-26 Thread ike bailey
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