@Test void testCreateMetadataNotCapable() { assertThrows( MetadataAccessException.class, () -> dataServiceV3Impl.create("sys_md_EntityType", emptyMap())); }
@Transactional @Override public Entity create(String entityTypeId, Map<String, Object> requestValues) { Repository<Entity> repository = getRepository(entityTypeId, OperationType.MODIFY); EntityType entityType = repository.getEntityType(); Entity entity = entityManagerV3.create(entityType); entityManagerV3.populate(entityType, entity, requestValues); validate(entity); repository.add(entity); return entity; }
DataServiceV3Impl implements DataServiceV3 { @Transactional @Override public Entity create(String entityTypeId, Map<String, Object> requestValues) { Repository<Entity> repository = getRepository(entityTypeId, OperationType.MODIFY); EntityType entityType = repository.getEntityType(); Entity entity = entityManagerV3.create(entityType); entityManagerV3.populate(entityType, entity, requestValues); validate(entity); repository.add(entity); return entity; } }
DataServiceV3Impl implements DataServiceV3 { @Transactional @Override public Entity create(String entityTypeId, Map<String, Object> requestValues) { Repository<Entity> repository = getRepository(entityTypeId, OperationType.MODIFY); EntityType entityType = repository.getEntityType(); Entity entity = entityManagerV3.create(entityType); entityManagerV3.populate(entityType, entity, requestValues); validate(entity); repository.add(entity); return entity; } DataServiceV3Impl(
      MetaDataService metaDataService,
      EntityManagerV3 entityManagerV3,
      QueryMapper queryMapper,
      SortMapper sortMapper,
      FetchMapper fetchMapper,
      EntityValidator entityValidator); }
DataServiceV3Impl implements DataServiceV3 { @Transactional @Override public Entity create(String entityTypeId, Map<String, Object> requestValues) { Repository<Entity> repository = getRepository(entityTypeId, OperationType.MODIFY); EntityType entityType = repository.getEntityType(); Entity entity = entityManagerV3.create(entityType); entityManagerV3.populate(entityType, entity, requestValues); validate(entity); repository.add(entity); return entity; } DataServiceV3Impl(
      MetaDataService metaDataService,
      EntityManagerV3 entityManagerV3,
      QueryMapper queryMapper,
      SortMapper sortMapper,
      FetchMapper fetchMapper,
      EntityValidator entityValidator); @Transactional @Override Entity create(String entityTypeId, Map<String, Object> requestValues); @Transactional(readOnly = true) @Override Entity find(String entityTypeId, String entityId, Selection filter, Selection expand); @Transactional(readOnly = true) @Override Entities findSubresources(
      String entityTypeId,
      String entityId,
      String attributeName,
      @Nullable @CheckForNull Query query,
      Selection filter,
      Selection expand,
      Sort sort,
      int size,
      int number); @Transactional(readOnly = true) @Override Entities findAll(
      String entityTypeId,
      @Nullable @CheckForNull Query query,
      Selection filter,
      Selection expand,
      Sort sort,
      int size,
      int number); @Transactional @Override void update(String entityTypeId, String entityId, Map<String, Object> requestValues); @Transactional @Override void updatePartial(
      String entityTypeId, String entityId, Map<String, Object> requestValues); @Transactional @Override void delete(String entityTypeId, String entityId); @Transactional @Override void deleteAll(String entityTypeId, @Nullable @CheckForNull Query query); }
DataServiceV3Impl implements DataServiceV3 { @Transactional @Override public Entity create(String entityTypeId, Map<String, Object> requestValues) { Repository<Entity> repository = getRepository(entityTypeId, OperationType.MODIFY); EntityType entityType = repository.getEntityType(); Entity entity = entityManagerV3.create(entityType); entityManagerV3.populate(entityType, entity, requestValues); validate(entity); repository.add(entity); return entity; } DataServiceV3Impl(
      MetaDataService metaDataService,
      EntityManagerV3 entityManagerV3,
      QueryMapper queryMapper,
      SortMapper sortMapper,
      FetchMapper fetchMapper,
      EntityValidator entityValidator); @Transactional @Override Entity create(String entityTypeId, Map<String, Object> requestValues); @Transactional(readOnly = true) @Override Entity find(String entityTypeId, String entityId, Selection filter, Selection expand); @Transactional(readOnly = true) @Override Entities findSubresources(
      String entityTypeId,
      String entityId,
      String attributeName,
      @Nullable @CheckForNull Query query,
      Selection filter,
      Selection expand,
      Sort sort,
      int size,
      int number); @Transactional(readOnly = true) @Override Entities findAll(
      String entityTypeId,
      @Nullable @CheckForNull Query query,
      Selection filter,
      Selection expand,
      Sort sort,
      int size,
      int number); @Transactional @Override void update(String entityTypeId, String entityId, Map<String, Object> requestValues); @Transactional @Override void updatePartial(
      String entityTypeId, String entityId, Map<String, Object> requestValues); @Transactional @Override void delete(String entityTypeId, String entityId); @Transactional @Override void deleteAll(String entityTypeId, @Nullable @CheckForNull Query query);  }