aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate or JDO? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate or JDO?" Watch "Hibernate or JDO?" New topic
Author

Hibernate or JDO?

Tong Chen
Ranch Hand

Joined: Apr 26, 2002
Posts: 1011
1) Hibernate or JDO, which is better?
2) When to use Hibernate ?
3) When to use JDO?
4) Is it possible Hibernate can be adopted as a Java standard like JDO was?

Thanks!


Tong Chen (Seattle USA)<br />SCJP,SCWCD,SCDJWS,IBM XML,MCP.NET,MCAD.NET,MCSD.NET
Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

4) In my opinion, it really doesn't matter whether Hibernate becomes a standard. The important thing is that it works and is an option among the variety of persistence framework out there. And the LGPL license is flexible.
It might be prudent to create a layer that minimizes dependencies on a particular persistence product; so that your app is portable. XDoclet can do this very well.
Pho


Regards,

Pho
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
1) Hibernate or JDO, which is better?

Well, do you care more about powerful features or maximum portability?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
eammon bannon
Ranch Hand

Joined: Mar 16, 2004
Posts: 140
You could argue that Hibernate is the standard in real terms, if you accept that a standard is that which most people use. JDO may be Sun's prescribed way of doing things but Hibernate is much more mature, better supported and much more widely used. Since its inclusion into the JBoss group too its become more credible. Go with what works best - remember that Entity Beans, who's failings are very probably the reason why JDO and Hibernate are necessary, is a Sun standard too.
Erik Bengtson
Ranch Hand

Joined: Dec 06, 2003
Posts: 90
- Hibernate is a product and JDO is a specification
- Hibernate is a VERY mature product
- Hibernate is open source.
- Hibernate is supported by JBoss Group.
- Hibernate is well accepted by the community.
- JDO is not so much mature in the O/R field.
- JDO has mature and not so much mature implementations in the O/R field.
- JDO is supported by many companies, SAP, Sun, bla bla bla.
- JDO is at some level portable to any data store.
- JDO has many open source O/R implementations.
- JDO has ODBMS, File and XML data store implementations.
It's probably that hibernate and Oracle Toplink support JDO in future, so working with JDO today will make easier to migrate at that time.
[ March 20, 2004: Message edited by: Erik Bengtson ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate or JDO?