3 major changes (#716)

* made changes to java reflection

* removed redundant method makeSound in Animal abstract class

* added project for play-framework article

* added project for regex

* changed regex project from own model to core-java

* added project for routing in play

* made changes to regex project

* refactored code for REST API with Play project
This commit is contained in:
Egima profile
2016-10-03 22:06:01 +03:00
committed by Grzegorz Piwowarek
parent 222c4b6a98
commit 455c71ae71
30 changed files with 1685 additions and 206 deletions
@@ -38,8 +38,8 @@ public class StudentController extends Controller {
return ok(Util.createResponse(jsonObjects,true));
}
public Result listStudents() {
List<Student> result=StudentStore.getInstance().getAllStudents();
ObjectMapper mapper = new ObjectMapper();
Set<Student> result=StudentStore.getInstance().getAllStudents();
ObjectMapper mapper = new ObjectMapper();
JsonNode jsonData=mapper.convertValue(result, JsonNode.class);
return ok(Util.createResponse(jsonData,true));