change add and update method to return newly modified entity
create a test for toJSON method of entity
update project definition of eclipse