Does the many-to-one element support custom sql via the <sql-insert> ?
I want to do something like this, but I get an error saying it can't parse the .hbm.xml file: <many-to-one name="SOMReserves" column="somNodeResourcesId" class="com.gdc4s.muos.nms.persistence.planning.apportionment.impl.entities.PlanApportionNodeResources" not-null="false" lazy="false" formula="( SELECT nodeResourcesId FROM PlanApportionNodeResourcesView WHERE apportionType='2')"> <sql-insert> insert into PlanApportionNodeResourcesView(apportionId,nodeId,type) values (?,?,2) </sql-insert> </many-to-one>
|