-->
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.  [ 2 posts ] 
Author Message
 Post subject: can <sql-insert> use with dynamic-insert=true
PostPosted: Mon Jan 24, 2011 1:32 am 
Newbie

Joined: Sun Jan 23, 2011 4:09 am
Posts: 5
In our application I tried to use <sql-insert> for call the stored procedures through the hibernate mapping file. as discussed in
http://docs.jboss.org/hibernate/core/3. ... erysql-cud section 16.3

eg:
<sql-insert callable="true">{call createPerson (?, ?)}</sql-insert>

But because we put "dynamic-insert=true" property, Hibernate differs its number of parameters time to time If we doesn't put values on some fields (null). So <sql-insert> doesn't call the stored proceedure as itis.

can any one help me on this. or can any one suggest me to do this in differently with use of the "dynamic-insert=true"


Top
 Profile  
 
 Post subject: Re: can <sql-insert> use with dynamic-insert=true
PostPosted: Mon Jan 24, 2011 10:12 am 
Newbie

Joined: Sun Jan 23, 2011 4:09 am
Posts: 5
Hi with dynamic-insert or dynamic-update true it differs the number of parameters time to time. IS there any method to call stored procedures with those dynamic properties enabled
can any one help me on this.....


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

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.