added hibernate edit and add