Hi Fabio, How can I validate my XML?
On 9 fev, 10:02, Fabio Maulo <[email protected]> wrote: > There is a bug but it is in your mapping not in NH. > Validate your XML with the schema and you will see the error. > > 2010/2/9 Eduardo Costa <[email protected]> > > > > > Hi Diego, > > > The problem is in component because if I remove component work. > > I get that error when I initialize the nhibernate. > > > On 9 fev, 09:37, Diego Mijelshon <[email protected]> wrote: > > > Eduardo, > > > > You are not giving any context to your problem. > > > When do you get that error? what are the classes? the rest of the > > mapping? > > > Why are you assuming the nested component causes the error? > > > > Diego > > > > On Tue, Feb 9, 2010 at 08:08, Eduardo Costa <[email protected]> wrote: > > > > Hi, > > > > > I have this map > > > > > <component name="DadosGerais" insert="true" update="true" > > > > optimistic-lock="true" > > > > class="HMV.PortalMedico.Domain.Model.Curriculo.DadosGerais, > > > > HMV.PortalMedico.Domain, Version=1.0.0.0, Culture=neutral, > > > > PublicKeyToken=null"> > > > > <component name="FormacaoAcademicaTitulacao" insert="true" > > > > update="true" optimistic-lock="true" > > > class="HMV.PortalMedico.Domain.Model.Curriculo.FormacaoAcademicaTitulacao, > > > > HMV.PortalMedico.Domain, Version=1.0.0.0, Culture=neutral, > > > > PublicKeyToken=null"> > > > > <bag cascade="all-delete-orphan" name="Graduacao" > > > > mutable="true"> > > > > <key> > > > > <column name="NumeroIdentificador" /> > > > > </key> > > > > <one-to-many > > > > class="HMV.PortalMedico.Domain.Model.Curriculo.Graduacao, > > > > HMV.PortalMedico.Domain, Version=1.0.0.0, Culture=neutral, > > > > PublicKeyToken=null" /> > > > > </bag> > > > > </component> > > > > </component> > > > > > But not work, the error is, Object reference not set to an instance of > > > > an object. > > > > > Any suggestions please. > > > > > Tks, > > > > Eduardo Costa > > > > > -- > > > > 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]> > > <nhusers%[email protected]<nhusers%[email protected]> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/nhusers?hl=en. > > > -- > > 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.
