Skip to content

Commit

Permalink
(M/Q)Resource._abstract renamed to abstractValue to satisfy Checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Mar 22, 2023
1 parent 91b64f6 commit bac51e8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ public class MResource extends MObject {
public MObjectType connectorRefTargetType;
public Integer connectorRefRelationId;
public Boolean template;
public Boolean _abstract;
// column and item are both called "abstract" which is a Java keyword
public Boolean abstractValue;
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class QResource extends QAssignmentHolder<MResource> {
public final NumberPath<Integer> connectorRefRelationId =
createInteger("connectorRefRelationId", CONNECTOR_REF_RELATION_ID);
public final BooleanPath template = createBoolean("template", TEMPLATE);
public final BooleanPath _abstract = createBoolean("_abstract", ABSTRACT);
public final BooleanPath abstractValue = createBoolean("abstractValue", ABSTRACT);

public QResource(String variable) {
this(variable, DEFAULT_SCHEMA_NAME, TABLE_NAME);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private QResourceMapping(@NotNull SqaleRepoContext repositoryContext) {
q -> q.connectorRefRelationId,
QConnectorMapping::get);
addItemMapping(F_TEMPLATE, booleanMapper(q -> q.template));
addItemMapping(F_ABSTRACT, booleanMapper(q -> q._abstract));
addItemMapping(F_ABSTRACT, booleanMapper(q -> q.abstractValue));
}

@Override
Expand Down Expand Up @@ -107,7 +107,7 @@ public MResource newRowObject() {
t -> row.connectorRefTargetType = t,
r -> row.connectorRefRelationId = r);
row.template = schemaObject.isTemplate();
row._abstract = schemaObject.isAbstract();
row.abstractValue = schemaObject.isAbstract();

return row;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ public void test810ResourceAndItsBusinessApproverReferences() throws Exception {
assertThat(row.connectorRefTargetType).isEqualTo(MObjectType.CONNECTOR);
assertCachedUri(row.connectorRefRelationId, connectorRelation);
assertThat(row.template).isFalse();
assertThat(row._abstract).isFalse();
assertThat(row.abstractValue).isFalse();

QObjectReference<?> ref = QObjectReferenceMapping
.getForResourceBusinessConfigurationApprover().defaultAlias();
Expand Down

0 comments on commit bac51e8

Please sign in to comment.