Oh ok, it's probably just a terminology issue then. We use JDO and hence
the PersistenceManager is our equivalent to the others you speak of.

In the past DAOs were always a beast that had to be dealt with
explicitly to store and retrieve objects. The Hibernate Session, JDO
PersistenceManager etc., are a lot less 'manual' with automatic 'load on
demand' and update of dirty objects and so I never associated them with
the old fashioned DAOs we used to create.

We also use the "Exposed POJO Domain Model" pattern with its
'repositories' (for locating objects) and 'services' (for making
significant model changes according to embedded business rules) which
allows us to write code that can be easily ported to any transparent
persistence provider and it manages all the dependency injection in a
very light weight manner in simple Java rather than a 'sea of XML' which
really turned me off Spring.


> the need for dao per entity class has gone away with transparent
> persistence, however there is still a "dao" that is a hibenate
> session, jpa entitymanager, cayenne context, or whatever.
> 
> also, some people still use dao to store finder/batch update methods.
> 
> -igor
> 
> On Thu, May 29, 2008 at 6:19 PM, Chris Colman
> <[EMAIL PROTECTED]> wrote:
> > Pardon my possible ignorance but didn't the need to use DAOs
evaporate
> > once transparent persistence (eg., Hibernate, JDO) hit the streets a
few
> > years back?
> >
> > I always thought the DAO architecture was what we used in the old
days
> > in the absence of mature transparent persistence solutions when we
had a
> > DAO per persistent class to help with the persistence of that class.
Now
> > that persistence is effectively transparent (using Hibernate, JPOX
> > etc.,) aren't they now redundant?
> >
> >> >>> Have you tried with naming the dao to be injected explicitly?
i.e.
> >> >>>
> >> >>> @SpringBean (name="ProtocolDAO")
> >> >>>  private ProtocolDAO dao;
> >> >>
> >> >> Interesting. That seems to get me closer...
> >> >>
> >> >>
org.springframework.beans.factory.BeanNotOfRequiredTypeException:
> > Bean
> >> >> named 'ProtocolDAO' must be of type
> >> >> [com.vzbi.ncs.argfrp.jpa.netconf.ProtocolDAO], but was actually
of
> > type
> >> >> [$Proxy30]
> >> >>
> >> >> Checking google...
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to