• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

should we learn hibernate ?

 
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, i hear that hibernate is good to use for replacing normal jdbc query ...can anyone comments this ?

we are currently starting a new project which is based on j2ee , some of the staff are suggest hibernate , but our team don't have many people know this technology , is this technology worth to replace jdbc query ?

thank you very much for your advice
 
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm currently reading "Hibernate - a developer's notebook". And I have to say that Hibernate looks pretty good. I think if I were starting a new project, I would seriously consider using something like Hibernate.

The best place for more info is probably the Object-Relational Mapping subforum. There have been lots of discussions of the merits of Hibernate and other ORM tools recently.
 
Sheriff
Posts: 67645
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to ORM.
 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have been using Hibernate for the last 5-6 months extensively.

Here are my recommendations:

The learning curve to Hibernate is low if
1. Your database is structured nicely with good normalization and well-defined primary keys.

2. Most of your queries are fairly straightforward (even if it includes a lot of joins)

3. If you haven't been asked to use the Entity Beans part of EJB. Hibernate is an equivalent of CMP/BMP section of EJB.

While Hibernate works great even otherwise, the learning curve may be a bit longer for more complex scenarios.

That said, the help in Hibernate forum and the two books that are out there (Hibernate Reference - free, and Hibernate In Action by Manning) are very good.
 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The simple answer is: yes, learn Hibernate. It has good prospects - and EJB 3.0 will future-proof it for the near future.

The technology has clear market momentum - and there's clear market signs that the vendors of proprietary ORM products and also data persistence runtime product vendors with deployment fees are begining to panic.

One issue is that you do need to deal with is the steep learning curve. CodeFutures expects to be making an announcement in the near future that should help a lot with this issue. Stay tuned!


Regards
PJ Murray
CodeFutures Software
Java Code Generation for Data Persistence
http://www.codefutures.com
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sathya Srinivasan:
the two books that are out there (Hibernate Reference - free, and Hibernate In Action by Manning)


Well, there's actually at least three books about Hibernate available from Amazon.com (the missing two are from Wrox/Wiley and O'Reilly).
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another option is learning JDO rather than (or as well as) hibernate.

JDO queries are expressed in a syntax much like ordinary Java, so it's easy to do basic stuff really quickly, and then learn more of the intricacies (caching, disconnected object graphs, etc) as you go.

Both JDO and hibernate are about 90% of the same as the forthcoming EJB 3 POJO persistence. The main difference of course is that hibernate is a proprietary API implemented only by a single vendor, whereas there are a few dozen JDO vendors, including some pretty good free & open source implementations.

So JDO will more than likely be a better investment of time and effort learning, since there are plenty of JDO vendors to maintain compatibility with the JDO APIs and Spec, whereas developing against hibernate APIs will probably mean you'll *have* to migrate to EJB 3 in the future. Most JDO vendors on the other hand, will give you the *option* of migrating to EJB 3, by supporting both JDO 2 and EJB 3 persistence within the same product.

cheers,

Dave.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic