Hi all, I'm having the following problem with version 3.1:
I used to map the private fields of a certain class
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
_____________
--- Eulers Identität --- <http://en.wikipedia.org/wiki/Euler%27s_identity>
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.