template spring mvc and hibernate