示例#1
0
 @PUT
 @Path("{id}")
 @Consumes({"application/xml", "application/json"})
 public void edit(@PathParam("id") Integer id, Film entity) {
   entity.setFilmId(id.intValue());
   filmFacadeEJB.edit(entity);
 }
示例#2
0
 @GET
 @Path("{id}")
 @Produces({"application/xml", "application/json"})
 public Film find(@PathParam("id") Integer id) {
   return filmFacadeEJB.find(id);
 }
示例#3
0
 @POST
 @Consumes({"application/xml", "application/json"})
 public void create(Film entity) {
   filmFacadeEJB.create(entity);
 }
示例#4
0
 @GET
 @Produces({"application/xml", "application/json"})
 public List<Film> findAll() {
   return filmFacadeEJB.findAll();
 }