HIbernate Entity Manger Applied