Since the only previous mapping was attribute-based, class always had
[DocumentId] set on some property => this property had to exist.
Now, I do not use any kind of primary keys in domain model, only in
DB. But I still want to use this key in mapping.
So I create a DocumentId, but the class does not have a property with
corresponding name => QueryLoader crashes.
(btw I just understood that I have broken a previously working use
case with documentid indexed name != property name, but this is
unrelated problem)
On Oct 18, 4:01 pm, Ayende Rahien <
aye...@ayende.com> wrote:
> I am sorry, I am not following what the problem is
>
> On Sun, Oct 18, 2009 at 1:53 PM, Andrey Shchekin (ashmind) <
>
>
>
>
ashm...@gmail.com> wrote:
>
> > One (now known) issue with the current patch: without attributes, it
> > is possible to map DocumentId to a DB-only Id.
> > In that case, there is an issue described here
>
> >
http://stackoverflow.com/questions/1583520/nhibernate-a-correct-way-t...