Hi all.
Perhaps we have to take a decision about some rules to supports
column-naming.

In the model (excluding the case of "new") we can't use the same property
name, more than once, inside the same branch of hierarchy.
Uhh... try to explain every case is too long...

The fact is that in NH we have, already, some methods
(as IOuterJoinLoadable.GenerateTableAliasForColumn) where we suppose that a
column-name is unique in the hierarchy.
On the other hand we are not checking this situation so:
- duplicating the column name (without specify insert=false) the user will
have a very nice and self explained ArgumentOutOfRange exception
- if the same key-column-name is used for two collections with one-to-many
relation, loading that object the user will have two identical collection
(logic bug due column-naming)

What I would introduce is an early-validation-check of these situations: the
same column-name can't be used to represent two different properties.

Thoughts ?

NOTE: I have use "column-name" for simplicity but should
be "columns-names-set".

-- 
Fabio Maulo

Reply via email to