mjed wrote:
Hibernate version:
1.0.4
i have something like:
class A
{
public int [] B;
}
how can i map property B? (B needs to be able to take duplicate items)
i think this should be really simple, but can't find a solution
many thanks,
mike
See the NHibernate documentation:
1.2:
http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html_single/#collections-ofvalues
1.0.2/1.0.4
http://www.hibernate.org/hib_docs/nhibernate/html_single/#collections-ofvalues
Pay attention to the bag of integers. Note that you won't be able to use the array, but rather should use an IList.