Thanks! I find it: http://fabiomaulo.blogspot.com/2008/11/entities-behavior-injection.html
I know that injecting services in the entities is not good...but this is a special case of an Entity that needs another entity to get something done. Bye! ema http://blog.codiceplastico.com On Tue, Jan 5, 2010 at 8:39 PM, Gustavo Ringel <[email protected]> wrote: > I'm almost sure i have seen example of doing this in Fabio's blog, look > there. > In any case injecting a service in an entity may be a very bad idea... > Gustavo. > > On Tue, Jan 5, 2010 at 9:36 PM, Emanuele DelBono <[email protected]> > wrote: >> >> hi! >> Like all you knows NH need that a domain object have a default >> constructor. >> Do you know which way I should follow to be able to inject a service >> in a domain object that is mapped with NH? >> >> I give a look at all the listeners but I didn't find one that >> intercept the object creation. Maybe should I use an Interceptor? Is >> it possible with that? >> >> Thanks. >> >> ema >> http://blog.codiceplastico.com >> >> -- >> 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. >> >> >> > > > -- > 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. > >
-- 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.
