-->
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.  [ 12 posts ] 
Author Message
 Post subject: Stored Procedure
PostPosted: Tue Apr 27, 2004 2:34 pm 
Beginner
Beginner

Joined: Tue Apr 27, 2004 11:16 am
Posts: 23
Hi,

I am a newbie to Hibernate. I am trying to implement hibernate for our stored procedure calls. Right now hibernate supports stored procedure with tweaking the code. Here is an expample.

http://forum.hibernate.org/viewtopic.ph ... +persister

Here is my thoughts on approaching it.....

How about getting HQL modified to take in not only simple sql statements but also stored procedure calls along with the parameters.

The stored procedure statements can be converted @ getQueries() method to the adaptable database language.

The other process remains the same.

Is my plan, good, bad, ok...


Thoughts pls....

-Gana.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 27, 2004 9:51 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Max is implementing SP support in v22branch. This work is already mostly done.


Top
 Profile  
 
 Post subject: thANKS
PostPosted: Wed Apr 28, 2004 8:35 am 
Beginner
Beginner

Joined: Tue Apr 27, 2004 11:16 am
Posts: 23
Thanks for the reply.. I am in the process of evaluating Hibernate for the new upcoming project.

Any reference documentation on how to make use of the functionality for stored procedures?

Thanks

-Gana


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 28, 2004 10:38 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
In 2.1, get a connection() from the session and execute SQL.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject: Thanks
PostPosted: Wed Apr 28, 2004 11:44 am 
Beginner
Beginner

Joined: Tue Apr 27, 2004 11:16 am
Posts: 23
Thanks for the reply.

How about the set up on the hibernate.cfg.xml and the hibernate-mapping xml files.

- Gana.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 28, 2004 11:48 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Read the documentation.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 28, 2004 3:49 pm 
Beginner
Beginner

Joined: Tue Apr 27, 2004 11:16 am
Posts: 23
The support for stored procedure is new to 2.2.

I am looking for the xml configuration for this new functionality.

-- Gana.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 28, 2004 4:00 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
There is no 2.2, only a CVS pre-alpha branch. Don't use it.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 28, 2004 8:16 pm 
Beginner
Beginner

Joined: Tue Apr 27, 2004 11:16 am
Posts: 23
Any idea on when 2.2 is to be launched???

-gana.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 28, 2004 8:20 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Actually, this branch is part of Hibernate3.

http://blog.hibernate.org/cgi-bin/blosx ... 4/02#three

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 30, 2004 9:30 am 
Beginner
Beginner

Joined: Tue Apr 27, 2004 11:16 am
Posts: 23
Any apecific daates has been finalised for the 2.2 or 3 release.

Thanks
Gana.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 30, 2004 10:38 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
No.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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