-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Wrong value binding order when using stored procs
PostPosted: Fri Oct 13, 2006 5:21 pm 
Newbie

Joined: Thu Aug 24, 2006 11:10 am
Posts: 16
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.