【发布时间】:2011-01-11 04:48:55
【问题描述】:
我的情况是这样的..(注意:对于那些使用JBPM的人可能已经熟悉以下数据结构和HB映射)
LongInstance 类从 VariableInstance 扩展而来,在 LongInstance 中覆盖了字段“值”的映射。 VariableInstance 的映射为here,LongInstance 的映射为here。
VariableInstance多态映射到TokenVariableMap中的一个集合,映射为here。
问题:如何使用成员类的特定/覆盖属性查询多态集合?
我正在寻找这样的东西 “...来自 TokenVariableMaps tvm left join fetch tvm.variableInstances tvi 其中 cast(tvi as LongInstance).value in(:vars)"
【问题讨论】: