by =?ISO-8859-1?Q?Arne_Vajh=F8j?= <arne@[EMAIL PROTECTED]
>
Mar 12, 2008 at 09:44 PM
RC wrote:
> Our office soon is going to replace
> JDBC with Hibernate.
No you will replace direct JDBC usage with Hibernate. Hibernate
uses JDBC.
> BTW, what is the relation****p between Spring and Hibernate?
None.
Spring is a IOC/DI framework.
Hibernate is an ORM.
> Do we need both of them to replace JDBC?
They don't.
It is one of:
your code----JDBC driver----database
your code----Hibernate----JDBC driver----database
your code----Spring----JDBC driver----database
your code----Spring----Hibernate----JDBC driver----database
> I program with JDBC for many years, feel comfortable with it.
> JDBC requires you well know about SQL. Hibernate doesn't require
> a programmer know about SQL. Is this a great advantage?
It is an advantage that Hibernate works at a higher abstraction
level and saves some trivial code.
I will assume that your Java programmers did not have any
problems with the simple SQL needed for CRUD.
Besides you get HQL with Hibernate.
:-)
Arne