[nhusers] Re: Entity Updation

2009-07-29 Thread Sachin
Thanks Nexus Can you share any article/URL pointing towards the same as it seems to be a big challenge for my team and we have thousands of such scenarios in my application as our DBA had divided tables to make it look more normalised. Thanks!! On Jul 27, 3:54 pm, Nexus tommar...@gmail.com

[nhusers] Re: Entity Updation

2009-07-27 Thread Sachin
Thanks Nexus!! I know it can be handeled in code as I can create two entities where I can fetch values and can create a common entity out of it, but it require me to define multiple entities and also I have to define relations etc. What I was wondering was if I have some thing like SQL where

[nhusers] Re: Entity Updation

2009-07-27 Thread Nexus
You could use projections, or maybe map the two entities by a discriminator greetings On 27 jul, 11:50, Sachin sachingupta1...@gmail.com wrote: Thanks Nexus!! I know it can be handeled in code as I can create two entities where I can  fetch values and can create a common entity out of it,  

[nhusers] Re: Entity Updation

2009-07-25 Thread Nexus
Sachin, This seems like a code smell to me, if the two entity types, now is one, have a different meaning, try modelling them accordingly. In nhibernate an object of a given type, is only once per primary key in de session (identitymap). Kind regards PS: If you think i didn't understand the