Got injection and hibernate working with example code.