• 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

Is it possible/easy to use Hibernate with existing database?

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am just learning Hibernate; it looks like a valuable ORM and, especially considering the new version 3.0, fairly easy to use. I am considering suggesting that my team use it for a project I am on. In this project, however, the database structure already exists and has been in use for awhile. So that being said, is it possible to implement Hibernate into an existing application, plugging it into an existing database? Is it common to do so?

It would seem that as long as one ensures that the db table and column names match between the database and the mapping files, then this would be possible. But since I am so new to Hibernate, I can't tell for sure.

Thanks in advance for an insight!
 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

is it possible to implement Hibernate into an existing application, plugging it into an existing database?


yes
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, don't be afraid Hibernate is easy... :-)
 
dave taubler
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay; thanks!
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Definitely. Hibernate can be used anyway you want. Meaning if you have Java Business Objects already, or a database already, you can start from any point.

Pick up the book Hibernate in Action.

And your database can be designed anyway, so if you have a legacy database without it being third normal form, Hibernate can map to it as well.

Mark
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic