well... Brand should change its domain but to fit NH (for collection) and the DynamicProxy-system (for lazy-loading he must declare "virtual") He absolutely does not need to change its domain to fit the mapping-system.
*I don’t need to change myself to fit the framework, it fits to me!* *Are you ConfORM ?* ROTLF!!! 2010/4/12 Tom Bushell <[email protected]> > > > On Apr 12, 2:51 pm, Fabio Maulo <[email protected]> wrote: > > This is my mapping > > orm.TablePerClass<Client>(); > > orm.TablePerClass<Party>(); > > orm.TablePerClass<Product>(); > > orm.TablePerClass<ClientOrder>(); > > orm.Patterns.Poids.Add(new > > ConfOrm.Shop.Patterns.PoidPropertyAsClassNameId()); > > That's fairly elegant - I'm impressed! > > Am I correct in thinking that this is your own enhancement to > NHibernate, or does the basic NHibernate distribution support this? > > This is a slightly different approach to FNH automapping, in that you > have to specify how to map a class (e.g. TablePerClass - I assume > there are other pre-defined mappings as well). But in practice, it > seems it would be equally convenient. > > Are you saying it would work with Brand's classes as he defined them? > If so, that's very nice - not having to make any changes to your > domain classes to support the ORM. > > If I wanted to evaluate this approach, how would I get started? > > -Tom > > -- > 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.
