-->
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.  [ 4 posts ] 
Author Message
 Post subject: how to call <sql-insert> from java
PostPosted: Sun May 23, 2010 2:05 pm 
Newbie

Joined: Sun May 23, 2010 1:58 pm
Posts: 3
Hi All,
I need to call procedures for insert,update and delete.
Hibernate provides <sql-insert>,<sql-update>,<sql-delete> to call named queries.
Please let me know how to call above named queries from java.
Is there namedquery with out returning anything.
Thanks in advance.


Top
 Profile  
 
 Post subject: Re: how to call <sql-insert> from java
PostPosted: Sun May 23, 2010 4:14 pm 
Regular
Regular

Joined: Tue May 11, 2010 5:50 pm
Posts: 54
Location: Norman, Ok, U.S.A
There is a way to call named queries. Look into the Hibernate API, there is a method where you just give the named query name as a parameter. I think that is what you are asking?

http://docs.jboss.org/hibernate/core/3. ... medqueries


Top
 Profile  
 
 Post subject: Re: how to call <sql-insert> from java
PostPosted: Mon May 24, 2010 1:06 am 
Newbie

Joined: Sun May 23, 2010 1:58 pm
Posts: 3
Hi Ivirani,
Thanks for your reply.
In case of <sql-insert> i am not able to give name of query. With out name of query, how can I call from java.In case of retrieving i can call namedquery from java(<sql-query>).
I am looking to call <sql-insert> from java


Top
 Profile  
 
 Post subject: Re: how to call <sql-insert> from java
PostPosted: Mon May 24, 2010 11:24 am 
Regular
Regular

Joined: Tue May 11, 2010 5:50 pm
Posts: 54
Location: Norman, Ok, U.S.A
See if this post can help you
viewtopic.php?t=966317


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