Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Any discuss group about Hibernate, Spring?

 
   Database Help (Home) -> Java RSS
Next:  use Squirrel-sql with MySql  
Author Message
RC

External


Since: Mar 12, 2008
Posts: 4



(Msg. 1) Posted: Wed Mar 12, 2008 9:10 am
Post subject: Any discuss group about Hibernate, Spring?
Archived from groups: comp>lang>java>programmer, others (more info?)

Our office soon is going to replace
JDBC with Hibernate. I am new to Hibernate.
I try to follow the tutorial from Hibernate 3.2 doc/reference/
I am stop in chapter 1, wouldn't get the same results as the tutorial!

BTW, what is the relationship between Spring and Hibernate?
Do we need both of them to replace JDBC?

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?

 >> Stay informed about: Any discuss group about Hibernate, Spring? 
Back to top
Login to vote
Lew

External


Since: Feb 15, 2008
Posts: 43



(Msg. 2) Posted: Wed Mar 12, 2008 7:46 pm
Post subject: Re: Any discuss group about Hibernate, Spring? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

RC wrote:
> Our office soon is going to replace
> JDBC with Hibernate. I am new to Hibernate.
> I try to follow the tutorial from Hibernate 3.2 doc/reference/
> I am stop in chapter 1, wouldn't get the same results as the tutorial!

> BTW, what is the relationship between Spring and Hibernate?
> Do we need both of them to replace JDBC?


You don't need Spring to run Hibernate, but it helps, and it has other
strengths besides. But Hibernate does not replace JDBC - it uses JDBC.

> Hibernate doesn't require
> a programmer know about SQL. Is this a great advantage?

No, it's a huge disadvantage. Anyone who thinks they can use a SQL-based
RDBMS without knowing SQL is hurting themselves.

Hibernate, and JPA generally, have strengths in managing that SQL, but by no
means should anyone think that they obviate the need for knowing how to use a
DBMS.

BTW, since mostly the same people read the three groups to which you
cross-posted, you should set followup to just one. Cross-posting gives you no
advantage in this instance, and might irritate some folks.

--
Lew

 >> Stay informed about: Any discuss group about Hibernate, Spring? 
Back to top
Login to vote
Arne_Vajhøj

External


Since: Mar 02, 2008
Posts: 36



(Msg. 3) Posted: Wed Mar 12, 2008 9:44 pm
Post subject: Re: Any discuss group about Hibernate, Spring? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 relationship 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.

Smile

Arne
 >> Stay informed about: Any discuss group about Hibernate, Spring? 
Back to top
Login to vote
Markus Tazl

External


Since: Jan 10, 2008
Posts: 10



(Msg. 4) Posted: Sat Mar 15, 2008 12:10 pm
Post subject: Re: Any discuss group about Hibernate, Spring? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 12 Mrz., 14:10, RC <raymond.c....DeleteThis@nospam.noaa.gov> wrote:
> Our office soon is going to replace
> JDBC with Hibernate. I am new to Hibernate.
> I try to follow the tutorial from Hibernate 3.2 doc/reference/
> I am stop in chapter 1, wouldn't get the same results as the tutorial!
>
> BTW, what is the relationship between Spring and Hibernate?
> Do we need both of them to replace JDBC?
>
> 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?

Hi RC,

in addition to the excellent answers given by Lew and Arne : for a
first introduction on Hibernate and Spring you could give two books
from O'Reilly a try.

http://www.oreilly.com/catalog/hibernate/index.html
http://www.oreilly.com/catalog/springadn/index.html

In my opinion they are both helpfull for beginners just to get an idea
what it's all about.

If you are familiar with Eclipse you could check out
http://www.myeclipseide.com/documentation/quickstarts/hibernateandspring/

best regards,
Markus Tazl

P.S. Even there is no relationship between Spring and Hibernate using
them together can make life easier Wink
 >> Stay informed about: Any discuss group about Hibernate, Spring? 
Back to top
Login to vote
RC

External


Since: Mar 12, 2008
Posts: 4



(Msg. 5) Posted: Mon Mar 17, 2008 9:19 am
Post subject: Re: Any discuss group about Hibernate, Spring? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Markus Tazl wrote:

>
> Hi RC,
>
> in addition to the excellent answers given by Lew and Arne : for a
> first introduction on Hibernate and Spring you could give two books
> from O'Reilly a try.
>
> http://www.oreilly.com/catalog/hibernate/index.html

I bought this book, that book published in 2004, the examples in that
book are Hibernate 2.2. Those examples are no longer true for Hibernate
3.2.
All packages have changed from net.sf. to org.hibernate.
package hbm2java is no longer available in 3.2, so I really can't play
around those examples.

> http://www.oreilly.com/catalog/springadn/index.html

I also bought this book, but have start read it, yet.
>
> In my opinion they are both helpfull for beginners just to get an idea
> what it's all about.
>
> If you are familiar with Eclipse you could check out
> http://www.myeclipseide.com/documentation/quickstarts/hibernateandspring/

Very good site, I'll learn from there.
 >> Stay informed about: Any discuss group about Hibernate, Spring? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
To hibernate or not to hibernate? - Hello everyone, newbie here. I'm developing an application for a repair shop. Customer comes in with a product, gets registered and a receipt is printed out. I did it on Access five years ago and it's been working since then. But now I want to add a few....

Need some in Hibernate - Hello there, I am new in Hibernate. I look at some examples in Hibernate 3.2 There is ALWAYS a Long id in a table class, like public class State { private Long id; // no such column in my STATE table in database private String state_code; //....

Hibernate and log4j config under Tomcat. - "Under Tomcat 3.x and 4.x, you should place the log4j.properties under the WEB-INF/classes directory of your web-applications. Log4j will find the properties file and initialize itself. This is easy to do and it works." "The XML configu...

Hibernate + Tomcat - where to bind the session to? - Hello group, I am building a web application with Tomcat and Hibernate as O/R mapper. Now my question is where should I bind the session to? At the moment I have the Hibernate Session as a ThreadLocal, so for each thread a new HibernateSession is..

Struts/Hibernate and date troubles - Dear all, I'm getting squeezed between Struts and Hibernate when I use Date type for a record. My setup is the simplest possible. This is my mappings file <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-mapping PUBLIC ..
   Database Help (Home) -> Java All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]