This content has been marked as final.
Show 4 replies
-
1. Re: Selecting non-string valued variable instances
pbrewer_uk Jul 13, 2007 6:36 AM (in response to pbrewer_uk)If anyone has any ideas at all, I'd be very grateful.
Thanks again, Pete. -
2. Re: Selecting non-string valued variable instances
vtysh Jul 13, 2007 6:53 AM (in response to pbrewer_uk)See on VariableInstance.hbm.xml it doesn't have a value property.
-
3. Re: Selecting non-string valued variable instances
pbrewer_uk Jul 13, 2007 7:03 AM (in response to pbrewer_uk)Thanks vtysh, that's true, but LongInstance is a sub-class of VariableInstance. And it does define a value property:
<hibernate-mapping default-access="field"> <subclass name="org.jbpm.context.exe.variableinstance.LongInstance" extends="org.jbpm.context.exe.VariableInstance" discriminator-value="L"> <property name="value" type="long" column="LONGVALUE_" /> </subclass> </hibernate-mapping>
So shouldn't it be calling the subclass value method? Or do I need to alter my query somehow to reference org.jbpm.context.exe.LongInstance?
Cheers, Pete. -
4. Re: Selecting non-string valued variable instances
johan.parent Jul 13, 2007 10:59 AM (in response to pbrewer_uk)I'm no expert but in src\java.jbpm.test\org\jbpm\context\exe\VariableQueryDbTest.java
there is an example of a query to another type of value. Granted it does not use org.jbpm.context.exe.VariableInstance but org.jbpm.context.exe.variableinstance.XXX directly which is probably not what you are hoping for. Jbpm has quite some code to handle the mapping of variables. I guess that's not a good sign. Maybe in a hibernate specific forum you'll have better luck.
Regards,
Johan