Hi Thomas,
Thanks. I guess it makes sense ;-)
Another question if you don't mind... I am moving slowly with RF, I still like the RPC's simplicity and I already have many services implemented with RPC so the transition is difficult. I have set up a seperate project to test a bit the different scenarios and I quickly ran into problems when trying to create a new entity proxy and adding a list of other entity proxies to this entity. Basically, Employee has N Projects. I create an Employee client side and a few projects (for test sake) and add them to the user and attempt to save the whole graph at once. I do get user saved with the N projects hwoever all projects are empty, ie with default values, and I get a "Could not find static method with a single parameter of a key type" error message. The entities are persisted though as I said. I have the impression the issue is with persisting projects. I use JPA on the other side.
What got me is I couldn't find an equivalent example piece of code/project for this simple problem.
Here's a bit of code:
EmployeeRequest request = requestFactory.employeeRequest();
EmployeeProxy newEmployee = request.create(EmployeeProxy.class);
newEmployee.setDisplayName("Employee " + Math.random());
newEmployee.setDepartment("Department " + Math.random());
ProjectProxy project = requestFactory.projectRequest().create(ProjectProxy.class);
project.setName("Project " + Math.random());
newEmployee.setProjects(Arrays.asList(project));
Request<Void> createReq = request.persist().using(newEmployee).with("projects");
If you have any clues ;-), highly appreciated.
Thanks,
Thomas