@Get("/espetaculos") public List<Espetaculo> lista() { // inclui a lista de estabelecimentos result.include("estabelecimentos", estabelecimentos.todos()); return agenda.espetaculos(); }
// metodo antigo. aqui soh por backup private Estabelecimento criaEstabelecimento(Long id) { return estabelecimentos.todos().get(0); }