crud operations using angularjs and java