@PUT @Path("{id}") @Consumes({"application/xml", "application/json"}) public void edit(@PathParam("id") Integer id, FilmActor entity) { entity.setFilmId(id.intValue()); filmActorFacadeEJB.edit(entity); }
@GET @Path("{id}") @Produces({"application/xml", "application/json"}) public FilmActor find(@PathParam("id") Integer id) { return filmActorFacadeEJB.find(id); }
@POST @Consumes({"application/xml", "application/json"}) public void create(FilmActor entity) { filmActorFacadeEJB.create(entity); }
@GET @Produces({"application/xml", "application/json"}) public List<FilmActor> findAll() { return filmActorFacadeEJB.findAll(); }