Hi,
I'm using hibernate core 3.1.3 (jdk 1.5) and want to use stored procedures to persist data. To do so I've defined some insert, update and delete stored procs. The problem I have now is that Hibernate binds the Parameter totally different than defined in the callable statement and totally different than ordered in the hbm.xml. It seem as the binding order is just random.
Am I doing something wrong? Is there a way to controll that or is it a bug?
Code:
<sql-insert callable="true">
{ call pras009i_v025 (
@prod_no=? ,
@track_no=? ,
@track_ext=? ,
@id_no=? ,
@client_key=? ,
@link_type_key=? ,
@track_licensed_by=? ,
@component_no=? ,
@side_no=? ,
@seq_no=? ,
@skip_no=? ,
@mod_track_name=? ,
@is_play_time_relevant=? ,
@is_explicit_link=? ,
@third_party_licencee=? ,
@headline=? ,
@ignore_track_name_suppl=? ,
@mod_play_time=? ,
@is_hidden_flag=? ,
@mod_stamp=? ,
@mod_flag=? ,
@mod_user=? ,
@may_update=0 )
}
</sql-insert>
Best
Meinolf