Slashdot Mirror


User: Andrus

Andrus's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. Cayenne Solution [Re:Java Data Objects are nice..] on Java Data Objects · · Score: 1
    While I am trying to stay away from commenting on EJB (the whole state of affairs in this area is just making me sad), among the real O/R frameworks (be it JDO-compatible or not), there are 3 major solutions:
    1. Use bytcode "enhancements" (JDO)
    2. Use reflection
    3. Use common superclass

    Personally I am in favor of (3). This allows to solve a problem mentioned by the parent - tracking object changes - with as little overhead as possible, and still keep your system clean OO. This is how Cayenne O/R Framework works:

    http://objectstyle.org/cayenne/

    This allows to track changes to objects as they occur, instead of doing a blanket analysis of all objects on commit. And in general this allows a better control of objects persistence behavior by the framework. There is another (commercial) product that uses the same approach: NeXT/Apple's WebObjects. The downside of (3) is that you must have a common superclass for all your business objects, but I still have to see the case when this is undesirable.

    Andrus

    Disclaimer: I am personally involved with Cayenne and therefore not impartial :-)