Hello,
I have problem to write HQL when DTO is having dictionary.
This is how mapping is look like:
<map name="NodeNamePaths" table="SomeTable" cascade="all">
<key column="ID" />
<composite-index class="OrgID">
<key-property name="ID" />
<key-property name="ID_mdbID" />
</composite-index>
<element column="NamePath"/>
</map>
And in DTO there is prop: IDictionary<OrgID, string> NodeNamePaths
I tried writing like this:
from OrganisationNode node
inner join node.NodeNamePaths node_paths
where index(node_paths).ID = :id and index(node_paths).ID_mdbID
= :mdbid
Error that I get is:
NHibernate.Hql.Ast.ANTLR.QuerySyntaxException: Exception of type
'Antlr.Runtime.NoViableAltException' was thrown.
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.