blog for learning struct and hibernate