式属性を使用してプロパティを追加したいクラスがあります。
これが私がマッピングファイルで使用するマッピングです。
<property name="CurrentUserVote" type="Climate.Domain.Vote, Climate.Domain" formula="(select v from Vote v where v.AchievementId=Id and (v.IP=:CurrentUserVoteFilter.CurrentUserIP))"></property>
ご覧のとおり、このプロパティは、すでにnhibernateマッピングを持っているクラスを参照するオブジェクトにしたいと思います。ただし、このマッピングではマッピング例外が発生します。
Could not determine type for: Climate.Domain.Vote, Climate.Domain, for columns: NHibernate.Mapping.Formula( (select v from Vote v where v.AchievementId=Id and (v.IP=:CurrentUserVoteFilter.CurrentUserIP)) )
式属性を持つプロパティをクラスにマップすることは可能ですか?
前もって感謝します。