setup architecture : ORM hibernate 4