Solved

Hibernate

Posted on 2006-06-15
3
1,266 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
orhanbaba earned 250 total points
ID: 16926632
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
ID: 17041160
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
ID: 17042578
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.

707 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