Hi again,

Okay, a lot of people pointed me to OJB or Torque or other persistance
projects, but that's just the problem an DAO package should solve!

The idea is very similiar to Avalon components were you have a ROLE and an
implementation.  Model objects (persistance objects or whatever you call them)
can be designed in the same way.  Meaning if I have a proper DAO framework, I
should be able to create ROLEs or interfaces of my models and then have the DAO
take care of calling the right implementation.

In other words, say I have a project that currently uses Torque.  I should be
able to create a DAO layer such that I could now swap out the model
implementation so that it could use Hibernate, Castor, OJB, straight JDBC or
whatever without rocking the boat in my controller or presentation code (to use
an MVC example).  

Just like in Avalon, I have a contract via the ROLE interface.  How the
implementation fulfills that role shouldn't matter to the client code.  It
could be using OJB or Torque or EJBs or SOAP or anything else.

Similiarly you don't want the DAO Manager to be tied to the implementation. 
The DAO framework should be implementation agnostic.  My problem with a lot of
the current persistance packages is that it ties me to a specific
implementation, when really they all do the same thing (gross over
simplification, I understand).  I want to be able to do my persistance now
with, say, Hibernate, but if I change my mind later I don't want to have to
touch the client code which uses these models.

Does this make sense?

>From what I understand, each persistance framework solves this problem I'm
describing a little differently or requires the developer to implement a DAO
pattern himself.  What I'm looking for is a consistant universal DAO framework
that could work with any of the packages mentioned so far.

Perhaps I simply don't understand some of these projects well enough, or don't
understand DAO well enough.  If anyone has some solutions or comments, I'm
really interested.

Thanks,
jaaron

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to