Page History
...
The following examples show how to insert an entity and update an existing entity.
Insert Entity
Code Block |
---|
private VersionableEventEntityService service; private AuthoringService authoringService; Â CodingScheme scheme = new CodingScheme(); scheme.setApproxNumConcepts(111l); scheme.setCodingSchemeName("testName"); scheme.setCodingSchemeURI("uri"); scheme.setRepresentsVersion("v1"); authoringService.loadRevision(scheme, null, null); CodingScheme cs = codingSchemeservice.getCodingSchemeByUriAndVersion("uri", "v1"); System.out.println(cs); Entity entity = new Entity(); entity.setEntityCode("c1"); entity.setEntityCodeNamespace("ns"); service.insertEntity("uri", "v1", entity); |
...