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.  [ 3 posts ] 
Author Message
 Post subject: how to read named parameter values
PostPosted: Wed Dec 29, 2010 6:55 am 
Newbie

Joined: Wed Dec 29, 2010 6:53 am
Posts: 3
Code:
SQLQuery query =
        session
            .createSQLQuery("BEGIN PKG_EMP.EMP_DETAILS(:empno,:empname,:sal); END;");
    query.setBigDecimal("empno", empno);
    query.setString("empname", empname);
    query.setBigDecimal("sal", sal);


I am reading the list of named parameters using
Code:
Object[] values = ((AbstractQueryImpl)query).getNamedParameters();


In the same i would like to read the values of the named parameters. Any body can tell how i can achieve it.


Top
 Profile  
 
 Post subject: Re: how to read named parameter values
PostPosted: Thu Dec 30, 2010 1:47 am 
Newbie

Joined: Wed Dec 29, 2010 6:53 am
Posts: 3
could anybody pls help on this


Top
 Profile  
 
 Post subject: Re: how to read named parameter values
PostPosted: Fri Jan 07, 2011 2:20 pm 
Newbie

Joined: Wed Dec 29, 2010 6:53 am
Posts: 3
guys please help on this.. any help is highly appreciated.

no one has any idea abt this...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.