Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Use of Hibernate

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends, Here, I want to know one basic thing about Hibernate.
1) Why Hibernate?
2) What is the need/use of Hibernate in Project?
3) In which condition we use Hibernate?
4) Is it the replacement of JDBC or EJB (Entity Bean)?
5) Exactly where we use Hibernate?

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate is
1.A ORM Tool
2.It saves you from the database mapping as in EJB 2.0 by just deefining the table structure in .xml files.
3.Can be used whenever you need to work with database.
4.Has its own query Language (Hibernate Query Language) which makes it easier to fetch data.
 
Gajanan Bandale
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Khadija Lokhandwala:
Hibernate is
1.A ORM Tool
2.It saves you from the database mapping as in EJB 2.0 by just deefining the table structure in .xml files.
3.Can be used whenever you need to work with database.
4.Has its own query Language (Hibernate Query Language) which makes it easier to fetch data.




Thanks Dude!!

Actually i know Hibernat little bit also i have some hands on experience with Hibernate coding but actually i want to know that

What is the need of Using Hibernate? I mean to say we use JDBC for connection, they what about Hibernate? What is its role in any project? I would like to know about its Basic......... such questions like

What? Why? Where?



 
ranger
Posts: 17344
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll pu tthis simply, because you can write a book answering those questions.

Why I use Hibernate over JDBC.

1. Easier to code.
2. Saves over 40% of JDBC code, which is a real pain to code to ResultSets and converting them into Java objects.
3. JDBC works with datasets, Hibernate works with Java Objects. (so to speak)
4. In some cases, Hibernate will be faster than JDBC, because of caching.

Mark
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The basic objective of Hibernate is to achive independence from database. You can writer yor datalayer and plug it with any Database liek Oracle , MySql, etc without changeing any code.
 
I'm just a poor boy, I need no sympathy, because I'm easy come, easy go, little high, little low, little ad
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!