Пример #1
0
 @PUT
 @Path("{id}")
 @Consumes({"application/xml", "application/json"})
 public void edit(@PathParam("id") Integer id, FilmActor entity) {
   entity.setFilmId(id.intValue());
   filmActorFacadeEJB.edit(entity);
 }
Пример #2
0
 @GET
 @Path("{id}")
 @Produces({"application/xml", "application/json"})
 public FilmActor find(@PathParam("id") Integer id) {
   return filmActorFacadeEJB.find(id);
 }
Пример #3
0
 @POST
 @Consumes({"application/xml", "application/json"})
 public void create(FilmActor entity) {
   filmActorFacadeEJB.create(entity);
 }
Пример #4
0
 @GET
 @Produces({"application/xml", "application/json"})
 public List<FilmActor> findAll() {
   return filmActorFacadeEJB.findAll();
 }