I have a package that is being written to handle different persistence
technologies. How would your project be set-up to handle this? Would
you have different dependent modules (with the same package name) and
select the one that you want at this time? Or you write the layer that
you need and rewrite it when you need the new one.
Basically, I have a project that is being written with Commons DBUtils.
The persistence technology will probably go to Hibernate in less than a
year. Sometime after that, it will be implemented in EJB3.
All calls are handled by a delegate which makes calls to a data access
object. The data access object is the one that is aware that it is
written in dbutils, hibernate, etc.
Sun Certified Java Programmer