HIbernate Test code