Matching a dictionary with NH. The declaration is as follows:
<hibernate-mapping ... <map name="CostsByRole" table="JobAccountingSnapshotCosts" lazy="false" fetch="join" access="nosetter.camelcase-underscore"> <key column="SnapshotId" /> <index column="RoleCode" type="String" /> <element column="Amount" type="Decimal" /> </map> </hibernate-mapping>
I expect one SQL query to be created, but instead I get two: a selection for the actual object, followed by a selection of the contents of the dictionary.
Any ideas?
source share