Abstracting Object Persistence

How can I abstract the implementation of my object persistance.

For example, I want to create a layer/service that will return references to persistant objects irrespective of how they are implemented e.g. EJB, Object-Oriented database, or simple Data Access Objects.

Otherwise, I will have to decide on persistance implementation before I start the design.

Alternatively, is it possible to map EJB's to Object-Oriented Database?

[462 byte] By [jaco@cyberseal.co.za] at [2007-9-26 6:03:39]
# 1
Create a class that has methods to return object references but leave the implementation blank. Or create a abstract factory and create the implementation for your factory later.> Alternatively, is it possible to map EJB's to Object-> Oriented Database?Yes.
dubwai at 2007-7-1 14:45:21 > top of Java-index,Other Topics,Patterns & OO Design...