Changes between Version 5 and Version 6 of Spring
- Timestamp:
- 11/12/08 00:24:02 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Spring
v5 v6 51 51 '''Chosen Option 3'''. First Option 1 was chosen because of : This option is chosen because (1) one line less of configuration (2) It is working directly with the sessionFactory instead of a Facade like HibernateTemplate. Working with a template can have advantages. However in case of Hibernate, Spring has little to add because Hibernate is a very mature package. (3) SessionFactory is directly available. This might be necessary in cases of more advanced use of Hibernate. 52 52 53 Option 3 has been chosen after a tip from Jose. Option 3 has a little bit more configuration at the beginning. But for each Dao there is only one line of configuration needed. This is more elegant especially when there will be more Dao's. The sessionFactory is still available via this.getSessionFactory(). 53 Option 3 has been chosen after a tip from Jose. Option 3 has a little bit more configuration at the beginning. But for each Dao there is only one line of configuration needed. This is more elegant especially when there will be more Dao's. The sessionFactory is still available via this.getSessionFactory(). The dao itself is very minimalistic, all the boilerplate code is in the HibernateDaoSupport. 54 54 55 55