Hi

When reading the beer4all example, I remark that the use of OJB is done in
the service layer.
My question is: 
Why there is no separated persistence layer that can be implemented by OJB
(or other)?
Can't we make, in OJB, an implementation of an interface like


public interface PersistenceService {

public Object getObjectById(int id);

public Collection getCollectionById(int id);

public Object getObjectByCriteria(Object criteria);

public Collection getCollectionByCriteria(Object criteria);

public Object getObjectForUpdate(Object criteria);

public void updateObject(Object o);

public void updateCollection(Collection o);

public void createObject(Object o);

}

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

Reply via email to