Monthly Archives: April 2012

Implementing JUnit with Spring

We Need junit- 4.x jar and spring-test-2.5.6.jar

Posted in Hibernate, JUnit, Spring | Leave a comment

Second Level Caching in Hibernate with ehcache

Need to configure hibernate properties POJO need to be marked as Cache ehcache.xml TestClass here a sleep of 6 sec is placed so ehcache make a hit as its timeToIdleSeconds is 5. Output : Here ehcahe.xml has country cached for … Continue reading

Posted in Hibernate, Spring | Leave a comment