• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Cookbook : JDO  RSS feed

 
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, mr.Ian why we want to use JDO ? is this a new concept ? why is it implement into your book as on chapter 20 - database access ?

thank you !!
 
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this link
http://java.sun.com/products/jdo/index.jsp
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDO is easy, Alvin... It's not a new concept... It's simply persistence Java objects, to reduce network communication... It's a best practice to use this concept in J2EE applications...

Hope this article might be useful for you as well...
 
author
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As has been mentioned, JDO is one of several new persistence mechanisms based on "Object Relational Mapping" (another is Hibernate). The basic idea is to make your life easier: instead of writing a whole blob of SQL, you can just deal in *objects*, and have them stored into and loaded from the database (a bit like Entity EJB, but a lot easier to use). Here's a bit of an example from the book:



Ian
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!