>>dynamically creates subclasses' attributes
dynamic-component may help
http://nhforge.org/blogs/nhibernate/archive/2009/04/11/nhibernate-mapping-lt-dynamic-component-gt.aspx

another blog:
http://nhforge.org/blogs/nhibernate/archive/2008/10/16/less-than-gof-is-hbm.aspx

On Tue, Apr 21, 2009 at 4:23 PM, Anatoly <[email protected]> wrote:

>
> I'd like to solve inhertance problem using this key-value princniple.
> see picture: http://tweakers.net/ext/f/uWjgoN8WWxwspZKQjxYq0NSf/full.jpg
> I want that NHibernate dynamically creates subclasses' attributes
> using detail-table with key-value pair, where key is the name of the
> attribute and the value is the value.
> Is it possible with NHibernate?
>
> Now, when creating QuestionType1 object, I need to have a Properties
> attribute (type IDictionary) in Question class and to use {map/} to
> store key-value pairs in QuestionDetails table.
>
> I prefer this solution over the standard ones (like table-per-subclas
> or table-per-concrete-class), because i have more than 80 subclasses
> with three hierarchical levels and all with their specific attributes.
>
> 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