Commit b5908b0c authored by Matija Obreza's avatar Matija Obreza
Browse files

Merge branch '639-subset-owner-optimistic-lock' into 'main'

Resolve "Subset owner optimistic lock"

Closes #639

See merge request genesys-pgr/genesys-server!700
parents 59d81708 6a7eb598
......@@ -90,7 +90,7 @@ public abstract class CRUDController <T extends EmptyModel, S extends CRUDServic
@PutMapping(value = "", produces = { MediaType.APPLICATION_JSON_VALUE })
@Operation(operationId = "create", description = "Create a record", summary = "Add")
public T create(@RequestBody @Valid @NotNull final T entity) {
return crudService.reload(crudService.create(entity));
return crudService.load(crudService.create(entity).getId());
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment