private int? _positiveValue;
private int? _negativeValue;
_____________using the following hbm.xml:<property name="PositiveValue" access="field.camelcase-underscore" /> <property name="NegativeValue" access="field.camelcase-underscore" />This worked fine with NH <= 3.0, but with 3.1.0.4000 I get an error while building the session factory:
[PropertyNotFoundException: Could not find the property 'PositiveValue', associated to the field '_positiveValue', in class '...UsefulnessEntry'] NHibernate.Properties.FieldAccessor.GetGetter(Type theClass, String propertyName) +248 NHibernate.Util.ReflectHelper.ReflectedPropertyClass(String className, String name, String accessorName) +131...
[MappingException: Could not compile the mapping document: ...UsefulnessEntry.hbm.xml]...I did not have any property getters defined for my private fields. Now it seems to be forced by NH 3.1. When I add them as follows the error vanishes:private int? PositiveValue { get { return _positiveValue; } }private int? NegativeValue { get { return _negativeValue; } }I would consider this a regression and I'm wondering if this is by design or by accident. Can anybody shed light on this new behaviour?Cheers, Oliver
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
<property name="PositiveValue" access="field.camelcase-underscore" />
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.