GWT RequestFactory is nice while saving/update the data, using as below:
EmployeeRequest request = requestFactory.employeeRequest();
EmployeeProxy newEmployee = request.create(EmployeeProxy.class);
newEmployee.setName("Joe!");
Request<Void> createReq = request.persist().using(newEmployee);
createReq.fire();
and we use remove instead of persist to delete.
Then how about Search using RequestFactory. Say my domain object is Employee with name, login & address. All three fields are optional for search, Can we achieve this using RequestFactory? or we should use RPC?
Regards
Using your example, you can find user with
RequestFactorylike this: