I've been trying to have a calculated property with a formula specified
so the mapping in HBM would look like:
<property name="Foo" formula = "from bar select baz" />
If I want to
do it via IPropertyConvention though and I specify formula it still adds
a column element (there is no column in the database) and NHibernate
ignores the formula and just tried to get the value from column, which
obviously fails.
So I'm thinking either when formula is specified it should wipe out all
columns (I'm not sure if there is a scenario where you would want to
have a column and a formula since the formula would be ignored then but
perhaps there is).
Alternatively having an option to manually say "the column does not
exist" would also be acceptable.