Hello all,
I have the following situation. A person can be both student and
vendor. Let's say that I save the person first, and after that the
person becomes a vendor. Using inheritance in NHibernate (mapped as
table per class) i cannot save the person first, and make that person
entity also a vendor. I understand the NHibernate team which says that
you cannot change the type of an object (.NET object for example) once
the object has been created. But, what if I ask the NHibernate session
"get me the object vendor with the id of the object person" and then,
the session, even though sees that the vendor does not exist, sees
also that the person (which is the superclass of vendor) exists, and
gives me a vendor object with the properties from person filled in and
after that the vendor object can be persisted into the database?
This post is addressed mainly to the NHibernate team, so any follow up
from them will be appreciated.
Thanks.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to