Solved

Hibernate

Posted on 2006-06-15
3
1,261 Views
Last Modified: 2013-11-24
Hi

Present we are using Oracle stored procedures and Callable statements to invoke those procedures to deal with data in our applicaiton JDBC part.  Now we are planning to re-develop that part using Hibernate.  I have some doubts

1. Can we write complex queries using HQL and how fast those are?

2. Can we avoid connection pooling provided by hibernate? Instead of that can we use weblogic container managed pooling mechanism?  Which one is faster.

3. If we call stored procedures how hibernate will handle? is it faster. Im asking about performance.

4. In JDBC we will get ResultSet. In which form we will get results if we use hibernate?

5. Is Hibernate is more reliable if we are having more secured and complicated transactions?

6. If i want to pass one hibernate session into other how i can do?

7. Is there any other technology which is simple and more reilable than hibernate in my senario?

we will deal with wast product data information in our applicaiton.

Good suggestions please. and please dont give references like hibernate.org etc.. i have gone through all those. I need answers form experts who worked extensively on hibernate.
0
Comment
Question by:anumalas
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
orhanbaba earned 250 total points
Comment Utility
you can use complex queries in hibernate it can be slow alittle bit  there is no bigger difference.
you can use hibernates pools it is easy to manage and has strong caching capabilities.
calling sp is faster not because of hibernate. stored procedures are compiled on dbserver. there is no difference between hibernate or others
you can use list array list or whatever you want. jdk 5 has serious advantegers about generics it is easy to code.
yes it is reliable .
hibernate session factory will be helpfull.

hibernate is  EJB3 (it is not but looklike that :) ) container. you can use oracle toplink or EJB3 supported app. servers.

The main goel is isolating your applications from database. It is very important because if you change sth from db you dont need to change full of your source.

sorry about bad english
0
 
LVL 3

Author Comment

by:anumalas
Comment Utility
Suppose if i convert exisitng stored procedures into prepared statements and complex queries is there any performance leak using hibernate ??
0
 
LVL 4

Expert Comment

by:orhanbaba
Comment Utility
you can use stor. proc. in hibernate. you dont need to convert them to hql.
if you want to convert them to sql queries yes you can have some performance issues. at this point hibernate uses some caching techniques.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
The viewer will learn how to implement Singleton Design Pattern in Java.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now