hi edgar,

On Tue, 29 Mar 2005 10:13:02 -0300, Edgar Poce <[EMAIL PROTECTED]> wrote:
> Hi tobi
> 
> > i suggest to keep the persistence managers as passive as possible,
> > with a little intelligence as possible.
> >
> I just want the PersistenceManager be intelligent enough to achieve the
> following goals:

the persistence manager should IMO be as simple and stupid as possible.
as i have pointed out in several other threads it should not have to *interpret*
the data he's asked to persist. at least this is the idea behind jackrabbit's
design.

> 
> 1 - referencial integrity

referential integrity is taken care of by the repository. it's not a 
task of the persistence manager.

> 2 - transactional support

yep, that's a legitimate goal. this one could easily be delegated to 
the underlying 'store' (rdbms, journaling fs, etc etc).

> 3 - not duplicated data

again, that's taken care of by the repository.


cheers
stefan

> 
> I think these are legitimate goals of any persistence strategy for any
> app. The current implementations lack all these features.
> OJBPersistenceManager and HibernatePersistenceManager deal only with the
>   goal #2, and partially #1.
> 
> regards
> edgar
> 
> > cheers, tobi
> >
>

Reply via email to