nUserDaoHibernateImpl userDao = new
UserDaoHibernateImpl();
n
nUserDao userDao = new
UserDaoHibernateImpl();
n
nWhich one is better??
n
nWhat if we
decide to use JDBC instead of Hibernate, i.e. replace UserDaoHibernateImpl
with UserDaoJdbcImpl
nThe
application is not really independent of the data access method
nSwitching to a different UserDao implementation affects
all the code that uses
UserDao