-->
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.  [ 8 posts ] 
Author Message
 Post subject: Views, Functions and Stored Procedures ...
PostPosted: Thu Aug 25, 2005 1:38 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
Hi All,

Does Hibernate support full fledge use of views, DB API functions and Stored procedures ???

I tried to look for documenation but didnt really get more information on the same. If somebody has already done this or knows more about what to read in order to get this done please provide me with the links.

Also would be helpful if ppl who have already implemented stuff like this can send me some examples on how things work with views and DB functions ...

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 25, 2005 1:43 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
Ok I found about Stored Procedures in chapter 17 of the documentation ....

how about Views and DB API functions ???


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 8:27 am 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
Does anybody know if Hibernates supports Views and DB Functions ?????


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 9:38 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
You can map entity to view or use it in SQL query without problems (views are transparent for application).
Functions are supported in HQL and SQL queries, you can customize hibernate to add more dialect specific functions (dialects are plugable and have default implementations)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 3:40 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
baliukas wrote:
You can map entity to view or use it in SQL query without problems (views are transparent for application).
Functions are supported in HQL and SQL queries, you can customize hibernate to add more dialect specific functions (dialects are plugable and have default implementations)


Does and one know of any working examples I can have a look at ???


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 3:53 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
A view is a table, virtual. There is no difference. That's the whole point.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 4:17 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
christian wrote:
A view is a table, virtual. There is no difference. That's the whole point.


How about functions?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 26, 2005 4:56 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
This question was already answered. If your big picture about what SQL functions are, and how they are typically used is still unclear, consult a SQL documentation.


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