spring based web application on java, using hibernate implementation