Skip to content

Commit

Permalink
djClassName is required
Browse files Browse the repository at this point in the history
  • Loading branch information
aeberhart committed Mar 28, 2024
1 parent 04056e6 commit 618284f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Base class for all configurable functions. Provides the primary key and polimorphism class name
*/
@JsonSchema(layout = "vertical", required = {"ID"},
@JsonSchema(layout = "vertical", required = {"ID", "djClassName"},
order = {"djClassName", "ID", "comment", "roles", "type"})
public abstract class AbstractConfigurableFunction<ARG, RET> extends AbstractFunction<ARG, RET> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import jakarta.ws.rs.NotAuthorizedException;
import jakarta.ws.rs.core.Context;
import jakarta.ws.rs.core.SecurityContext;
import org.dashjoin.service.ACLContainerRequestFilter;
import org.dashjoin.service.CredentialManager;
import org.dashjoin.service.Data.Choice;
Expand All @@ -24,11 +21,14 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableMap;
import jakarta.ws.rs.NotAuthorizedException;
import jakarta.ws.rs.core.Context;
import jakarta.ws.rs.core.SecurityContext;

/**
* abstract base class for all database implementations
*/
@JsonSchema(required = {"name"}, layout = "vertical",
@JsonSchema(required = {"djClassName", "name"}, layout = "vertical",
order = {"djClassName", "name", "comment", "title", "readRoles", "writeRoles"},
computed = "{ \"ID\": \"\\\"dj/\\\" & name\" }")
public abstract class AbstractDatabase implements Database {
Expand Down Expand Up @@ -282,14 +282,14 @@ public Object cast(Property p, Object object) {
}

/**
* when we ETL data, JSONata simplifies arrays with a single value
* to just the value. Databases can choose to handle this by overriding
* this method (see https://github.com/dashjoin/platform/issues/311)
* when we ETL data, JSONata simplifies arrays with a single value to just the value. Databases
* can choose to handle this by overriding this method (see
* https://github.com/dashjoin/platform/issues/311)
*/
public void castArray(Table m, Map<String, Object> object) {

}

/**
* default implementation for bulk inserts
*/
Expand Down

0 comments on commit 618284f

Please sign in to comment.