ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Flawed JDO Points the Way to the "Objectbase"
Subject:   JDO can give us more than just JavaBean functionality
Date:   2002-04-26 06:00:59
From:   balesd
Response to: JDO can give us more than just JavaBean functionality

Caching can be problematic. I see no problem caching database connections as long as I can hang onto one long enough to support a transaction and that functionality seems to work. This capability already exists in JDBC. But the caching of data is better performed programmatically if it is non-volatile and in most cases should not be done at all if the data is volatile.


Tools don't really push data mapping out of code, instead the entire concept of declaratively mapping relationships between variables in a class to columns in a relational database increase the possibility of misconstruing the purpose of a data attribute, and allow multiple implementations of a mapping to use it for varying purposes. At least if you define a class in an object base you know that it is what it says it is. There's no mapping involved.


But most disappointing to me is that you miss the point. If you use JDO with a relational database, your object model exists only in your executable program, not in the persistence layer. Using JDO is a Java only solution. Don't get me wrong, I believe Java is by far the best implementation of an object-oriented programming language to date, but my experience has shown me that the whatever is stored in the persistence layer far out lives the language that put it there. Isn't it time we started saving our behavior with our data? And, by doing so moving our problem domain object model into our persistence layer? Isn't that object-oriented development?



1 to 2 of 2
  1. Is an ORDBMS not just another persistence store for JDO?
    2002-05-01 01:43:57  fontaineb [View]

    • Donald Bales photo An ORDBMS is not just another persistence store for JDO
      2002-05-01 20:11:00  Donald Bales | O'Reilly Author [View]

      • An ORDBMS is not just another persistence store for JDO
        2002-06-02 23:38:22  tomdavies [View]

  2. Dion Almaer photo JDO can give us more than just JavaBean functionality
    2002-04-26 14:31:13  Dion Almaer | O'Reilly Author [View]

1 to 2 of 2