Hi, all
For complex data querying our team is using HQL. We couldn't find a solution for using IDictionary type property in HQL queries.
Actually Jacob recently posted the same kind of question
http://forum.hibernate.org/viewtopic.php?t=992128.
This is our code example and mapping file:
Code:
private Translation _additionalInfo;
public virtual IDictionary<Language, TranslatedValue> AdditionalInfo
{
get
{
if (_additionalInfo != null)
{
return _additionalInfo.Values;
}
else
{
_additionalInfo = Translation.Create();
return _additionalInfo.Values;
}
}
}
Code:
<many-to-one
name="_additionalInfo"
column="AdditionalInfoTranslationId" cascade="all-delete-orphan"
class="FontesFoorum.Domain.Localization.Translation, FontesFoorum.Domain"
access="field" />
Any kind of help is appreciated!!!
Ali