예제 #1
0
 @PermitAll
 @PUT
 @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
 @Mapped(namespaceMap = {@XmlNsMap(namespace = "http://emf-rest.com/proxy", jsonName = "proxy")})
 public void updateDaughter(DaughterImpl object) {
   resourceSaver.put(EcoreUtil.getIdentification(instance), object);
 }
예제 #2
0
 @PermitAll
 @DELETE
 @Mapped(namespaceMap = {@XmlNsMap(namespace = "http://emf-rest.com/proxy", jsonName = "proxy")})
 public void deleteDaughter() {
   resourceSaver.remove(EcoreUtil.getIdentification(instance));
 }