• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

why is hibernate not used in each and every App which stores and retrieved data from DB?

 
Ranch Hand
Posts: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We see a lot of web applications which stores and retrieves data in a database.Only in few of these we see hibernate being used.Should hibernate be used in each and every application that stores and retrieves data in a database or there are some situations where use of hibernate should be avoided.?
thanks
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's an odd question. Hibernate is popular, but it is only one of multiple solutions. Others include using a different ORM API, using no ORM, and using a No-SQL DB. Why do you think Hibernate should be used in all web apps?
 
Monica Shiralkar
Ranch Hand
Posts: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks.

By using different ORM API, using no ORM, and using a No-SQL DB can we achieve what we can do using hibernate like below:

save(stateObj) and cities are also saved

or

retrieve cities using one to many / many to one mapping of state and city.

 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Those are implementation questions - if any particular DB or DB API doesn't support it those directly you can always implement those on top of the DB API. But let's take a step a back: what prompted the original question? Are you trying to select a DB API for a web app project? Or a DB?
 
Monica Shiralkar
Ranch Hand
Posts: 2925
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I am trying to make a sample application for practice which has Spring so thought of using hibernate to store the values in database and retrieve it. Thats how I got this question that should I use hibernate.I want to practice hibernate
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you already decided to use Hibernate, then this question is moot as far as this project is concerned, isn't it?
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic