It is many-to-one, not property. 2011/3/4, Univac <[email protected]>: > Hello, i want to map a class with a reference of the same type, > like this: > > <?xml version="1.0" encoding="utf-8" ?> > <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" > assembly="CircularTest" > namespace="CircularTest"> > > <class name ="A" table ="ATable"> > > <!-- Id --> > <id name ="Id" type ="Guid"> > <generator class ="guid.comb"/> > </id> > > <!-- Data --> > <property name ="Data"/> > > <!-- Areference --> > <property name ="Areference" /> > > </class> > > </hibernate-mapping> > > namespace CircularTest > { > public class A > { > public virtual Guid Id { get; set; } > public virtual int Data { get; set; } > public virtual A Areference { get; set; } > } > } > > > and got the following exception: > > Could not determine type for: CircularTest.A, CircularTest, > Version=1.0.0.0, Culture=neutral, PublicKeyToken=b742abd039f7ea9e, for > columns: NHibernate.Mapping.Column(Areference) > > How can I map this kind of relation?. > > Thanks! > > > -- > 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. > >
-- Enviado desde mi dispositivo móvil -- 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.
