by convetion the table name is the class name and the column name is the property name.
2009/12/13 YoavB <[email protected]> > Hi, > I just got NHibernate and going through the 2nd chapter. I'm looking > at the XML file and there are a couple of things I don't understand: > <?xml version="1.0"?> > <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" > auto-import="true"> > <class name="HelloNHibernate.Employee, HelloNHibernate" lazy="false"> > <id name="id" access="field"> > <generator class="native" /> > </id> > <property name="name" access="field" column="name"/> > <many-to-one access="field" name="manager" column="manager" > cascade="all"/> > </class> > </hibernate-mapping> > > 1. Where is table EMPLOYEES mentioned? > 2. Where is the 'Id' column attribute. Does NHibernate assume its the > value in attribute name if column does not appear? > > Thanks > Yoav > > -- > > 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.
