This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDO question

 
Thomas Mcfarrow
Ranch Hand
Posts: 137
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a hibernate newbie.. Whats the difference between JDO and hibernate?

Thanks
[ October 13, 2004: Message edited by: Thomas Mcfarrow ]
 
Zeeshan Samdani
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a lot of interest in Java and object-database connectivity at the moment. The implementation you choose for your purpose would probably depend on your project and budget.

JDO is a Java standard and there are many JDO implementations available. This provides portability and customer security; if you need extra capabilities or features you can plug in a different implementation. Hibernate is open source and popular for simple projects, but is non-standard and lacks some of the OO query and performance features of JDO.

Zeeshan Samdani
www.powermapjdo.com
 
Erik Bengtson
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDO is designed to provide you database agnostic access to data. It means that with the same API you can access data stored in a file system, relational database, XML files, etc.

Hibernate is designed for object relational mapping.

JDO provides a query language similar to java and Hibernate has a query language more similar to SQL. Both query languages are good for their proposal, but JDOQL provides more datastore abstraction.

The way JDO was designed is one concrete advantage of it over Hibernate. Hibernate uses reflection and JDO uses a PersistenceCapable interface + StateManager. This permits JDO be more scalable and performant.

JDO has a lot of implementations with relational database support. In relation to Hibernate some may provide better performance, and some worse. To be sincere, I've never benchmark side by side both technologies.

I'm a developer of a JDO implementation, JPOX. It's open source and can be found at http://www.jpox.org

Regards,
[ October 14, 2004: Message edited by: Erik Bengtson ]
 
kundan varma
Ranch Hand
Posts: 323
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thomas Mcfarrow
I think ERik has given the best answer for your query. Even i suggest to go for JDO since it follow a standard and JPOX is a good implementation of JDO.
THanks
kundan
 
Quentin Ng
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Sorry for disturb. I know little about JDO.
Is there any free JDO developer kit avaliable by Sun?
How is that compare with other JDO implementations?

Thanks,
Quentin
 
Robin Roos
author
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Quentin Ng:
Sorry for disturb. I know little about JDO.
Is there any free JDO developer kit avaliable by Sun?
How is that compare with other JDO implementations?


Hi Quentin

How do you intend to use JDO? Sun has the JDO 1.0.1 RI but it doesn't address mapping to relational databases - it uses a file based storage system.

Most people learn JDO with a open source implementaton (e.g. JPOX) or an evaluation edition of a major commercial product (e.g. Kodo).

Kind regards, Robin.
 
Quentin Ng
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Robin.

In fact, I am using hibernate for our system right now.
I am comparing both technology to see which one has more benefit.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic