Forums Register Login

Why I would use JDBC over Hibernate ?

+Pie Number of slices to send: Send
Hi Cameron Wallace McKenzie,

Congrats for the book and Best of Luck !

My question is What are the situations where I would be forced to use JDBC over Hibernate ?

Thanks.
[ June 03, 2008: Message edited by: Ulf Dittmer ]
+Pie Number of slices to send: Send
One could use raw SQL queries when you need to call functions/stored procedures on the DB.
For example:


In such situation you can still create a SQLQuery in Hibernate.
+Pie Number of slices to send: Send
I don't think Hibernate has problems dealing with stored procedures.

One area where JDBC is preferable is the batch import of large amounts of data. Using Hibernate (or ORM in general) doesn't add anything to that, but may cause a noticeable slowdown.
+Pie Number of slices to send: Send
On one project, i had to use JDBC for some queries that joined on multiple databases.
I've never won anything before. Not even a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1706 times.
Similar Threads
what are the advantage of Hibernate Over Jdbc?
Hibernate over Jdbc
When to use Hibernate?
JDBC-hibernate
Use of Hibernate
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:28:06.