Пример #1
0
 @PUT
 @Path("{id}")
 @Consumes({"application/xml", "application/json"})
 public void edit(@PathParam("id") Integer id, Medic entity) {
   em.find(Medic.class, id, LockModeType.PESSIMISTIC_WRITE);
   super.edit(entity);
 }
 @DELETE
 @Path("{id}")
 public void remove(@PathParam("id") Long id) {
   super.remove(super.find(id));
 }
 @PUT
 @Path("{id}")
 @Consumes({"application/xml", "application/json"})
 public void edit(@PathParam("id") Long id, Amostra entity) {
   super.edit(entity);
 }
 @POST
 @Override
 @Consumes({"application/xml", "application/json"})
 public void create(Amostra entity) {
   super.create(entity);
 }
 @PUT
 @Path("{id}")
 @Consumes({"application/xml", "application/json"})
 public void edit(@PathParam("id") Integer id, PatientHistoryrecord entity) {
   super.edit(entity);
 }
 @POST
 @Override
 @Consumes({"application/xml", "application/json"})
 public void create(PatientHistoryrecord entity) {
   super.create(entity);
 }
Пример #7
0
 @DELETE
 @Path("{id}")
 public void remove(@PathParam("id") Integer id) {
   em.find(Medic.class, id, LockModeType.PESSIMISTIC_WRITE);
   super.remove(super.find(id));
 }
 @POST
 @Override
 @Consumes({"application/xml", "application/json"})
 public void create(Participante entity) {
   super.create(entity);
 }
Пример #9
0
 @PUT
 @Override
 @Consumes({"application/xml", "application/json"})
 public void edit(Recipe entity) {
   super.edit(entity);
 }