more direct: How do I map the property-to-set with the index of its object in piEvent.State?
On Dec 8, 7:03 pm, fel0nious <[email protected]> wrote: > thx for the quick reply > > hmm .. that's a good point :-o I'll give that a shot here in a > minute. > I went with the ugly version for now to get it working :) > > However, downwind of this in my PreInsertEventListener ... > > The whole point of what I'm doing is to be able to set a non-id > property on my entity with the value of a DB sequence. > I'm doing a good ol' fashioned SQL query to get this value, then set > the property it on my entity. > (I would LOVE for there to be a better way to do this, like in the > mappings) > > anyway, on commit, i get an error: cannot insert null into the field > (the column has a not null constraint) > > How do i correctly modify the value of the property so that it's > committed to the DB? > > Thanks > ~Joe > > On Dec 8, 6:54 pm, James Gregory <[email protected]> wrote: > > > > > > > > > Have you called BuildConfiguration before inspecting > > config.Configuration? Injection of mappings and application of the > > expose alterations are done when BuildConfiguration is called (which is > > also called by BuildSessionFactory if you haven't done it yourself). > > > Have you inspected the configuration after your BuildSessionFactory > > call? -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" 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/fluent-nhibernate?hl=en.
