Hi,
I have this mapping where I use a fixed value for a composite key:
<many-to-one name="deskCode" class="ObjRef">
<formula>'DeskCode'</formula>
<column name="DeskC" />
</many-to-one>
When I try to get my object using:
(ObjAcct) getHibernateTemplate().get(ObjAcct.class, acctId)
it works fine. The generated query is something like this:
"... 'DeskCode' as formula26_ ... "
My problem is when I try to save that object, hibernate is executing first a select query, and this query is incorrect:
"objacct_.'DeskCode' as formula26_"
Why hibernate is adding the "objacct_." before my fixed value?
Is there a way to avoid this?
Any help will be appreciate.
Thanks
|