When you create your mapping files, do you map your properties to fields or properties :
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Foo" namespace="Foo.Bar" >
<class name="Foo" table="FOOS" batch-size="100">
[...]
<property name="FooProperty1" access="field.camelcase" column="FOO_1" type="string" length="50" />
<property name="FooProperty2" column="FOO_2" type="string" length="50" />
[...]
</class>
</hibernate-mapping>
Of course, please explain why :)
Usually, I map to properties, but mapping to fields can enable to put some "logic" in the getters/setters of the properties.
Is it "bad" to map to fields ? Is there a best practice ?