use of br.com.caelum.vraptor.serialization.Serializer in project restfulie-java by caelum.
the class OrderingController method get.
@Get
@Path("/orders/{order.id}")
public void get(Order order) {
order = database.getOrder(order.getId());
if (order != null) {
Serializer serializer = result.use(representation()).from(order);
serializer.include("items").include("location");
serializer.include("payment").serialize();
} else {
status.notFound();
}
}
Aggregations