I think you're wondering what to use field.camelcase when we can do the same with just a field? This is true, but it would give (NH) properties unintayive names when, for example, writing queries or referencing a property from other mappings.
Say you have something you want to match using a field, like
private string _name; public string Name { get { return _name; } }
You can match the field using the field, but then you have to write "_name" when, for example, HQL queries are written.
select a from Foo a where a._name = ...
If you use the field.camelcase file instead, the same query will look like
select a from Foo a where a.Name...
EDIT Now I saw that you wrote "field.camelcase", but my answer is "field.camelcase-underscore". The principles are the same, and I think you get the point;)
source share