BTW here is an example http://fabiomaulo.blogspot.com/2008/11/entities-behavior-injection.html
2008/12/5 Fabio Maulo <[EMAIL PROTECTED]> > Aaaaahh now I saw.The name is optional and, if you don't specify it, you > must specify the type of the id. > <id type="int" column="event_id"> > <generator class="identity" /> > </id> > > The unsaved-value=0 is the default, you don't need to specify it. > > 2008/12/5 isaiah perumalla <[EMAIL PROTECTED]> > > >> this is the error i get >> NHibernate.MappingException : Could not compile the mapping document: >> Shaw.Services.Provisioning.AtomFeed.DataAccess.ProvisioningEvent.hbm.xml >> ----> NHibernate.MappingException : No type name specified >> >> when i change the identifier property to include a name it works fine >> and add a private property Id in my class >> <id name="Id" column="event_id" unsaved-value="0"> >> <generator class="identity" /> >> </id> >> >> On Dec 5, 10:14 am, "Ayende Rahien" <[EMAIL PROTECTED]> wrote: >> > What is the error? >> > >> > On Fri, Dec 5, 2008 at 6:31 PM, isaiah perumalla < >> > >> > [EMAIL PROTECTED]> wrote: >> > >> > > sorry for the confusion guys i downloaded 2.0.1.GA release. >> > > my congfig file looks like this >> > >> > > hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" >> > > assembly="Shaw.Services.Provisioning.AtomFeed" >> > > namespace="Provisioning.AtomFeed"> >> > > <class name="ProvisioningEvent" table="provisioning_events" >> > > lazy="false"> >> > > <id column="event_id" unsaved-value="0"> >> > > <generator class="identity" /> >> > > </id> >> > >> > > <property name="EventType" column="event_type" /> >> > > <property name="PublishedDateTime" column="published_date_time" /> >> > > <property name="OrderNumber" column="order_number" /> >> > > <property name="EventDateTime" column="event_date_time" /> >> > > </class> >> > > </hibernate-mapping> >> > >> > > but it complains that the name is missing >> > >> > > thanks for your help >> > >> > > Isaiah >> > >> > > On Dec 5, 8:41 am, "Fabio Maulo" <[EMAIL PROTECTED]> wrote: >> > > > 2008/12/5 isaiah perumalla <[EMAIL PROTECTED]> >> > >> > > > > sorry thats what i meant, i thought the property name was >> optional. >> > > > > but every time i dont specify the property name in the identifier >> > > > > element, i get a config error >> > >> > > > For us (especially when you are talking with Ayende or with me), >> > > "latests" >> > > > NH is the trunk. >> > > > -- >> > > > Fabio Maulo >> >> >> > > > -- > Fabio Maulo > -- 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 -~----------~----~----~----~------~----~------~--~---
