trying to add full crud but some bugs in hibernate needs to be fixed