I have the following line of code on my class:
Code:
[NHMA.HibernateMapping(DefaultAccess = "field.camelcase-underscore")]
I'm then using the NHibernate.Mapping.Attributes.HbmSerializer to serialize my assembly and get my mapping file from a memory stream.
The .hbm.xml file that is created by this process does not contain the
Code:
default-access="field.camelcase-underscore"
attribute in the <hibernate-mapping> element.
In fact, looking at the relevant example code in the NHibernateContrib project shows that the file Baz.Reference.hbm.xml has the following...:
Code:
<hibernate-mapping ... default-access="Int32" ...
The code on the Baz class is decorated with a
DefaultAccessTypeAttribute NOT a DefaultAccessAttribute.
Surely this is wrong compared to the default-access attribute definitions in the documentation sections 4.1 and 4.2?