[ http://jira.nhibernate.org/browse/NH-633?page=all ]
Harun Vos updated NH-633:
-------------------------
Attachment: Generic-and-VirtualProperties.zip
I needed this feature, so I've written a patch.
I'm new to NHibernate and C#, this is pretty messy and I don't think it's ready for the mainline, but I thought I'd better post it before it becomes obsolete ;)
It was originally made against 1.2beta2, but has also been tested against 1.2beta3.
It can handle collections of mapped entities, and of values (<element> tag).
Currently, it supports IList<type> and ISet<type>, but it won't handle IDictionary<key,type> - it will ignore requests to make a generic map.
I'm not sure about bag & idbag - YMMV.
I don't know how it interacts with sorted collections.
I have included some fairly skeletal unit tests.
This patch also adds virtual property support for proxyable classes - this is another matter entirely, not part of the generics support.
To use it, add a generic="true" attribute to your collection tag.
Good luck :)
> Add support for generic collections to hbm2net
> ----------------------------------------------
>
> Key: NH-633
> URL: http://jira.nhibernate.org/browse/NH-633
> Project: NHibernate
> Type: Improvement
> Components: Toolset
> Versions: 1.2.0.Alpha1
> Reporter: Sergey Koshcheyev
> Priority: Trivial
> Fix For: LATER
> Attachments: Generic-and-VirtualProperties.zip
>
> Postponed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nhibernate.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|