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
http://216.121.112.228/browse/NH-2556
Ā
If you donāt have any property, map it using access=āfieldā.
--
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.