1.0.2
Hierarchy: Parent-Child-Grandchild, both 1:M
Query: "from Child ch where :parm in elements(ch.Grandchild)"
Parameter passed: session.SetEntity("parm", someParentObject)
(YES - incorrect object submitted, the intent was to test type validation)
Result - no Exception raised, SQL successfully generated, Parent's ID substituted as the param value, SQL executed, some list of Child objects returned.
Problem: the actual param type was obviosly incorrect; but accepted by the system
Question: the lack of Param type validation - is this by design, or has some other explanation?
thank you
|