Thanks for the reply, but might have misunderstood my issue. The problem is when I add another property to my hbm.xml file that is a formula (works fine if its just mapped to a column)...
<property name="test" formula="(select to_char(sysdate) from dual)" type="string"/>
The formula works by itself, and the query works by itself (with just m.*) but together they throw NPE which is exactly what was specified here: https://hibernate.onjira.com/browse/HHH-2536, but this has been fixed, but can't find any usage notes on it.
Cheers,
Tim.
|