diff --git a/pom.xml b/pom.xml
index acf1584c..39d1f93f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -268,10 +268,6 @@
org.springframework.boot
spring-boot-starter-cache
-
- org.springframework.boot
- spring-boot-starter-quartz
-
com.fasterxml.jackson.dataformat
jackson-dataformat-xml
diff --git a/src/main/java/ch/ethz/seb/sebserver/gbl/api/EntityType.java b/src/main/java/ch/ethz/seb/sebserver/gbl/api/EntityType.java
index c1e28e5a..2abe4ab0 100644
--- a/src/main/java/ch/ethz/seb/sebserver/gbl/api/EntityType.java
+++ b/src/main/java/ch/ethz/seb/sebserver/gbl/api/EntityType.java
@@ -2,7 +2,7 @@ package ch.ethz.seb.sebserver.gbl.api;
import javax.annotation.Generated;
-@Generated(value="org.mybatis.generator.api.MyBatisGenerator",comments="ch.ethz.seb.sebserver.gen.DomainModelNameReferencePlugin",date="2019-10-28T13:38:46.173+01:00")
+@Generated(value="org.mybatis.generator.api.MyBatisGenerator",comments="ch.ethz.seb.sebserver.gen.DomainModelNameReferencePlugin",date="2019-10-31T08:44:00.345+01:00")
public enum EntityType {
CONFIGURATION_ATTRIBUTE,
CONFIGURATION_VALUE,
diff --git a/src/main/java/ch/ethz/seb/sebserver/gbl/model/Domain.java b/src/main/java/ch/ethz/seb/sebserver/gbl/model/Domain.java
index 3f2146f8..b4699144 100644
--- a/src/main/java/ch/ethz/seb/sebserver/gbl/model/Domain.java
+++ b/src/main/java/ch/ethz/seb/sebserver/gbl/model/Domain.java
@@ -5,7 +5,7 @@ import javax.annotation.Generated;
/** Defines the global names of the domain model and domain model fields.
* This shall be used as a static overall domain model names reference within SEB Server Web-Service as well as within the integrated GUI
* This file is generated by the org.eth.demo.sebserver.gen.DomainModelNameReferencePlugin and must not be edited manually.**/
-@Generated(value="org.mybatis.generator.api.MyBatisGenerator",comments="ch.ethz.seb.sebserver.gen.DomainModelNameReferencePlugin",date="2019-10-28T13:38:46.113+01:00")
+@Generated(value="org.mybatis.generator.api.MyBatisGenerator",comments="ch.ethz.seb.sebserver.gen.DomainModelNameReferencePlugin",date="2019-10-31T08:44:00.255+01:00")
public interface Domain {
interface CONFIGURATION_ATTRIBUTE {
@@ -105,6 +105,7 @@ public interface Domain {
String ATTR_QUIT_PASSWORD = "quitPassword";
String ATTR_BROWSER_KEYS = "browserKeys";
String ATTR_STATUS = "status";
+ String ATTR_LMS_SEB_RESTRICTION = "lmsSebRestriction";
String ATTR_UPDATING = "updating";
String ATTR_LASTUPDATE = "lastupdate";
String ATTR_ACTIVE = "active";
diff --git a/src/main/java/ch/ethz/seb/sebserver/gbl/model/exam/Exam.java b/src/main/java/ch/ethz/seb/sebserver/gbl/model/exam/Exam.java
index 4beda37a..f31d680f 100644
--- a/src/main/java/ch/ethz/seb/sebserver/gbl/model/exam/Exam.java
+++ b/src/main/java/ch/ethz/seb/sebserver/gbl/model/exam/Exam.java
@@ -49,6 +49,8 @@ public final class Exam implements GrantEntity {
null,
ExamStatus.FINISHED,
Boolean.FALSE,
+ null,
+ Boolean.FALSE,
null);
public static final String FILTER_ATTR_TYPE = "type";
@@ -114,6 +116,12 @@ public final class Exam implements GrantEntity {
@JsonProperty(EXAM.ATTR_STATUS)
public final ExamStatus status;
+ @JsonProperty(EXAM.ATTR_LMS_SEB_RESTRICTION)
+ public final Boolean lmsSebRestriction;
+
+ @JsonProperty(EXAM.ATTR_BROWSER_KEYS)
+ public final String browserExamKeys;
+
@JsonProperty(EXAM.ATTR_ACTIVE)
public final Boolean active;
@@ -136,6 +144,8 @@ public final class Exam implements GrantEntity {
@JsonProperty(EXAM.ATTR_OWNER) final String owner,
@JsonProperty(EXAM.ATTR_SUPPORTER) final Collection supporter,
@JsonProperty(EXAM.ATTR_STATUS) final ExamStatus status,
+ @JsonProperty(EXAM.ATTR_LMS_SEB_RESTRICTION) final Boolean lmsSebRestriction,
+ @JsonProperty(EXAM.ATTR_BROWSER_KEYS) final String browserExamKeys,
@JsonProperty(EXAM.ATTR_ACTIVE) final Boolean active,
@JsonProperty(EXAM.ATTR_LASTUPDATE) final String lastUpdate) {
@@ -152,7 +162,9 @@ public final class Exam implements GrantEntity {
this.quitPassword = quitPassword;
this.owner = owner;
this.status = (status != null) ? status : getStatusFromDate(startTime, endTime);
- this.active = (active != null) ? active : Boolean.FALSE;
+ this.lmsSebRestriction = (lmsSebRestriction != null) ? lmsSebRestriction : Boolean.TRUE;
+ this.browserExamKeys = browserExamKeys;
+ this.active = (active != null) ? active : Boolean.TRUE;
this.lastUpdate = lastUpdate;
this.supporter = (supporter != null)
@@ -178,6 +190,8 @@ public final class Exam implements GrantEntity {
EXAM.ATTR_STATUS,
ExamStatus.class,
getStatusFromDate(this.startTime, this.endTime));
+ this.lmsSebRestriction = mapper.getBoolean(EXAM.ATTR_LMS_SEB_RESTRICTION);
+ this.browserExamKeys = mapper.getString(EXAM.ATTR_BROWSER_KEYS);
this.active = mapper.getBoolean(EXAM.ATTR_ACTIVE);
this.supporter = mapper.getStringSet(EXAM.ATTR_SUPPORTER);
this.lastUpdate = null;
@@ -201,6 +215,8 @@ public final class Exam implements GrantEntity {
this.quitPassword = null;
this.owner = null;
this.status = (status != null) ? status : getStatusFromDate(this.startTime, this.endTime);
+ this.lmsSebRestriction = null;
+ this.browserExamKeys = null;
this.active = null;
this.supporter = null;
this.lastUpdate = null;
@@ -297,6 +313,14 @@ public final class Exam implements GrantEntity {
return this.status;
}
+ public Boolean getLmsSebRestriction() {
+ return this.lmsSebRestriction;
+ }
+
+ public String getBrowserExamKeys() {
+ return this.browserExamKeys;
+ }
+
public Boolean getActive() {
return this.active;
}
@@ -332,8 +356,14 @@ public final class Exam implements GrantEntity {
builder.append(this.supporter);
builder.append(", status=");
builder.append(this.status);
+ builder.append(", lmsSebRestriction=");
+ builder.append(this.lmsSebRestriction);
+ builder.append(", browserExamKeys=");
+ builder.append(this.browserExamKeys);
builder.append(", active=");
builder.append(this.active);
+ builder.append(", lastUpdate=");
+ builder.append(this.lastUpdate);
builder.append("]");
return builder.toString();
}
diff --git a/src/main/java/ch/ethz/seb/sebserver/gbl/util/Pair.java b/src/main/java/ch/ethz/seb/sebserver/gbl/util/Pair.java
new file mode 100644
index 00000000..6aa930d7
--- /dev/null
+++ b/src/main/java/ch/ethz/seb/sebserver/gbl/util/Pair.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+package ch.ethz.seb.sebserver.gbl.util;
+
+public class Pair {
+
+ public final A a;
+ public final B b;
+
+ public Pair(final A a, final B b) {
+ super();
+ this.a = a;
+ this.b = b;
+ }
+
+}
diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/content/ExamForm.java b/src/main/java/ch/ethz/seb/sebserver/gui/content/ExamForm.java
index 0e5e45a7..b5f376a2 100644
--- a/src/main/java/ch/ethz/seb/sebserver/gui/content/ExamForm.java
+++ b/src/main/java/ch/ethz/seb/sebserver/gui/content/ExamForm.java
@@ -145,6 +145,7 @@ public class ExamForm implements TemplateComposer {
private final DownloadService downloadService;
private final String downloadFileName;
private final WidgetFactory widgetFactory;
+ private final RestService restService;
protected ExamForm(
final PageService pageService,
@@ -157,24 +158,23 @@ public class ExamForm implements TemplateComposer {
this.downloadService = downloadService;
this.downloadFileName = downloadFileName;
this.widgetFactory = pageService.getWidgetFactory();
+ this.restService = this.resourceService.getRestService();
}
@Override
public void compose(final PageContext pageContext) {
final CurrentUser currentUser = this.resourceService.getCurrentUser();
- final RestService restService = this.resourceService.getRestService();
final I18nSupport i18nSupport = this.resourceService.getI18nSupport();
final EntityKey entityKey = pageContext.getEntityKey();
- final EntityKey parentEntityKey = pageContext.getParentEntityKey();
final boolean readonly = pageContext.isReadonly();
final boolean importFromQuizData = BooleanUtils.toBoolean(
pageContext.getAttribute(AttributeKeys.IMPORT_FROM_QUIZ_DATA));
// get or create model data
final Exam exam = (importFromQuizData
- ? createExamFromQuizData(entityKey, parentEntityKey, restService)
- : getExistingExam(entityKey, restService))
+ ? createExamFromQuizData(pageContext)
+ : getExistingExam(pageContext))
.get(pageContext::notifyError);
if (exam == null) {
@@ -190,7 +190,7 @@ public class ExamForm implements TemplateComposer {
// check exam consistency and inform the user if needed
if (readonly) {
- restService.getBuilder(CheckExamConsistency.class)
+ this.restService.getBuilder(CheckExamConsistency.class)
.withURIVariable(API.PARAM_MODEL_ID, entityKey.modelId)
.call()
.ifPresent(result -> showConsistencyChecks(result, formContext.getParent()));
@@ -286,8 +286,8 @@ public class ExamForm implements TemplateComposer {
this.resourceService::examSupporterResources))
.buildFor(importFromQuizData
- ? restService.getRestCall(ImportAsExam.class)
- : restService.getRestCall(SaveExam.class));
+ ? this.restService.getRestCall(ImportAsExam.class)
+ : this.restService.getRestCall(SaveExam.class));
final PageActionBuilder actionBuilder = this.pageService.pageActionBuilder(formContext
.clearEntityKeys()
@@ -320,7 +320,7 @@ public class ExamForm implements TemplateComposer {
CONFIG_LIST_TITLE_KEY);
final EntityTable configurationTable =
- this.pageService.entityTableBuilder(restService.getRestCall(GetExamConfigMappingsPage.class))
+ this.pageService.entityTableBuilder(this.restService.getRestCall(GetExamConfigMappingsPage.class))
.withRestCallAdapter(builder -> builder.withQueryParam(
ExamConfigurationMap.FILTER_ATTR_EXAM_ID,
entityKey.modelId))
@@ -410,7 +410,7 @@ public class ExamForm implements TemplateComposer {
INDICATOR_LIST_TITLE_KEY);
final EntityTable indicatorTable =
- this.pageService.entityTableBuilder(restService.getRestCall(GetIndicatorPage.class))
+ this.pageService.entityTableBuilder(this.restService.getRestCall(GetIndicatorPage.class))
.withRestCallAdapter(builder -> builder.withQueryParam(
Indicator.FILTER_ATTR_EXAM_ID,
entityKey.modelId))
@@ -493,11 +493,9 @@ public class ExamForm implements TemplateComposer {
private PageAction viewExamConfigPageAction(final EntityTable table) {
- final PageActionBuilder actionBuilder = this.pageService.pageActionBuilder(table.getPageContext()
+ return this.pageService.pageActionBuilder(table.getPageContext()
.clearEntityKeys()
- .removeAttribute(AttributeKeys.IMPORT_FROM_QUIZ_DATA));
-
- return actionBuilder
+ .removeAttribute(AttributeKeys.IMPORT_FROM_QUIZ_DATA))
.newAction(ActionDefinition.EXAM_CONFIGURATION_EXAM_CONFIG_VIEW_PROP)
.withSelectionSupplier(() -> {
final ExamConfigurationMap selectedROWData = table.getSelectedROWData();
@@ -577,26 +575,28 @@ public class ExamForm implements TemplateComposer {
this.resourceService.getRestService()
.getBuilder(DeleteExamConfigMapping.class)
.withURIVariable(API.PARAM_MODEL_ID, examConfigMappingKey.modelId)
- .call();
+ .call()
+ .onError(error -> action.pageContext().notifyError(error));
return action;
}
- private Result getExistingExam(final EntityKey entityKey, final RestService restService) {
- return restService.getBuilder(GetExam.class)
+ private Result getExistingExam(final PageContext pageContext) {
+ final EntityKey entityKey = pageContext.getEntityKey();
+ return this.restService.getBuilder(GetExam.class)
.withURIVariable(API.PARAM_MODEL_ID, entityKey.modelId)
- .call();
+ .call()
+ .onError(error -> pageContext.notifyError(error));
}
- private Result createExamFromQuizData(
- final EntityKey entityKey,
- final EntityKey parentEntityKey,
- final RestService restService) {
-
- return restService.getBuilder(GetQuizData.class)
+ private Result createExamFromQuizData(final PageContext pageContext) {
+ final EntityKey entityKey = pageContext.getEntityKey();
+ final EntityKey parentEntityKey = pageContext.getParentEntityKey();
+ return this.restService.getBuilder(GetQuizData.class)
.withURIVariable(API.PARAM_MODEL_ID, entityKey.modelId)
.withQueryParam(QuizData.QUIZ_ATTR_LMS_SETUP_ID, parentEntityKey.modelId)
.call()
- .map(quizzData -> new Exam(quizzData));
+ .map(quizzData -> new Exam(quizzData))
+ .onError(error -> pageContext.notifyError(error));
}
private String indicatorTypeName(final Indicator indicator) {
@@ -619,9 +619,9 @@ public class ExamForm implements TemplateComposer {
.reduce(
new StringBuilder(),
(sb, threshold) -> sb.append(threshold.value)
- .append(":")
+ .append(Constants.URL_PORT_SEPARATOR)
.append(threshold.color)
- .append("|"),
+ .append(Constants.EMBEDDED_LIST_SEPARATOR),
(sb1, sb2) -> sb1.append(sb2))
.toString();
}
diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/page/impl/PageAction.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/page/impl/PageAction.java
index 76400665..a0b2993c 100644
--- a/src/main/java/ch/ethz/seb/sebserver/gui/service/page/impl/PageAction.java
+++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/page/impl/PageAction.java
@@ -8,6 +8,7 @@
package ch.ethz.seb.sebserver.gui.service.page.impl;
+import java.util.Collections;
import java.util.Set;
import java.util.function.Consumer;
import java.util.function.Function;
@@ -85,7 +86,7 @@ public final class PageAction {
public EntityKey getSingleSelection() {
final Set selection = getMultiSelection();
- if (selection != null) {
+ if (selection != null && selection.size() > 0) {
return selection.iterator().next();
}
@@ -93,24 +94,31 @@ public final class PageAction {
}
public Set getMultiSelection() {
- if (this.selectionSupplier != null) {
- final Set selection = this.selectionSupplier.get();
- if (selection.isEmpty()) {
- if (this.noSelectionMessage != null) {
- throw new PageMessageException(this.noSelectionMessage);
+ try {
+ if (this.selectionSupplier != null) {
+ final Set selection = this.selectionSupplier.get();
+ if (selection.isEmpty()) {
+ if (this.noSelectionMessage != null) {
+ throw new PageMessageException(this.noSelectionMessage);
+ }
+
+ return Collections.emptySet();
}
- return null;
+ return selection;
}
- return selection;
- }
+ if (this.noSelectionMessage != null) {
+ throw new PageMessageException(this.noSelectionMessage);
+ }
- if (this.noSelectionMessage != null) {
- throw new PageMessageException(this.noSelectionMessage);
+ return Collections.emptySet();
+ } catch (final Exception e) {
+ log.error("Unexpected error while trying to get current selection: ", e);
+ throw new PageMessageException(
+ "Unexpected error while trying to get current selection: "
+ + e.getMessage());
}
-
- return null;
}
void applyAction(final Consumer> callback) {
diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java
index 2ec7ceaa..15d5a0cf 100644
--- a/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java
+++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/session/ClientConnectionTable.java
@@ -13,11 +13,10 @@ import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.EnumMap;
-import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
+import java.util.List;
import java.util.Map.Entry;
-import java.util.Set;
import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
@@ -33,6 +32,8 @@ import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
import ch.ethz.seb.sebserver.gbl.Constants;
import ch.ethz.seb.sebserver.gbl.api.EntityType;
@@ -80,7 +81,7 @@ public final class ClientConnectionTable {
private int tableWidth;
private boolean needsSort = false;
private LinkedHashMap tableMapping;
- private final Set sessionIds;
+ private final MultiValueMap sessionIds;
public ClientConnectionTable(
final PageService pageService,
@@ -129,7 +130,7 @@ public final class ClientConnectionTable {
}
this.tableMapping = new LinkedHashMap<>();
- this.sessionIds = new HashSet<>();
+ this.sessionIds = new LinkedMultiValueMap<>();
this.table.layout();
}
@@ -261,8 +262,6 @@ public final class ClientConnectionTable {
private ClientConnectionData connectionData;
private int[] thresholdColorIndices;
private boolean duplicateChecked = false;
- private boolean duplicateMarked = false;
- private boolean isDuplicate = false;
UpdatableTableItem(final Long connectionId) {
this.connectionId = connectionId;
@@ -297,11 +296,19 @@ public final class ClientConnectionTable {
}
void updateDuplicateColor(final TableItem tableItem) {
- if (this.isDuplicate && this.duplicateChecked && !this.duplicateMarked) {
- tableItem.setBackground(0, ClientConnectionTable.this.statusData.color3);
- this.duplicateMarked = true;
- } else {
- tableItem.setBackground(0, null);
+ if (!this.duplicateChecked) {
+ return;
+ }
+
+ if (this.connectionData != null
+ && StringUtils.isNotBlank(this.connectionData.clientConnection.userSessionId)) {
+ final List list =
+ ClientConnectionTable.this.sessionIds.get(this.connectionData.clientConnection.userSessionId);
+ if (list != null && list.size() > 1) {
+ tableItem.setBackground(0, ClientConnectionTable.this.statusData.color3);
+ } else {
+ tableItem.setBackground(0, null);
+ }
}
}
@@ -409,11 +416,8 @@ public final class ClientConnectionTable {
this.connectionData = connectionData;
if (!this.duplicateChecked && StringUtils.isNotBlank(connectionData.clientConnection.userSessionId)) {
- if (ClientConnectionTable.this.sessionIds.contains(connectionData.clientConnection.userSessionId)) {
- this.isDuplicate = true;
- } else {
- ClientConnectionTable.this.sessionIds.add(connectionData.clientConnection.userSessionId);
- }
+ ClientConnectionTable.this.sessionIds.add(connectionData.clientConnection.userSessionId,
+ this.connectionId);
this.duplicateChecked = true;
}
}
diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/table/EntityTable.java b/src/main/java/ch/ethz/seb/sebserver/gui/table/EntityTable.java
index bb21362b..ba49b9e1 100644
--- a/src/main/java/ch/ethz/seb/sebserver/gui/table/EntityTable.java
+++ b/src/main/java/ch/ethz/seb/sebserver/gui/table/EntityTable.java
@@ -159,7 +159,12 @@ public class EntityTable {
final PageAction defaultAction = defaultActionFunction.apply(this);
if (defaultAction != null) {
this.table.addListener(SWT.MouseDoubleClick, event -> {
- final EntityKey selection = getSingleSelection();
+ // if the action has its own selection function, apply this
+ EntityKey selection = defaultAction.getSingleSelection();
+ if (selection == null) {
+ // otherwise use current selection of this table
+ selection = getSingleSelection();
+ }
if (selection != null) {
this.pageService.executePageAction(
defaultAction.withEntityKey(selection));
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/WebserviceInfo.java b/src/main/java/ch/ethz/seb/sebserver/webservice/WebserviceInfo.java
index 2023ea7a..1e5a1305 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/WebserviceInfo.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/WebserviceInfo.java
@@ -162,7 +162,7 @@ public class WebserviceInfo {
* E.g.: https://seb.server.ch:8080
*
* @return the server URL prefix */
- public String getServerURL() {
+ public String getExternalServerURL() {
return this.serverURLPrefix;
}
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/AdditionalAttributeRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/AdditionalAttributeRecordDynamicSqlSupport.java
index 9584a652..ee958928 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/AdditionalAttributeRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/AdditionalAttributeRecordDynamicSqlSupport.java
@@ -6,25 +6,25 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class AdditionalAttributeRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.355+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.559+01:00", comments="Source Table: additional_attributes")
public static final AdditionalAttributeRecord additionalAttributeRecord = new AdditionalAttributeRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.355+01:00", comments="Source field: additional_attributes.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source field: additional_attributes.id")
public static final SqlColumn id = additionalAttributeRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.355+01:00", comments="Source field: additional_attributes.entity_type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source field: additional_attributes.entity_type")
public static final SqlColumn entityType = additionalAttributeRecord.entityType;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.355+01:00", comments="Source field: additional_attributes.entity_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source field: additional_attributes.entity_id")
public static final SqlColumn entityId = additionalAttributeRecord.entityId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.355+01:00", comments="Source field: additional_attributes.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source field: additional_attributes.name")
public static final SqlColumn name = additionalAttributeRecord.name;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.355+01:00", comments="Source field: additional_attributes.value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source field: additional_attributes.value")
public static final SqlColumn value = additionalAttributeRecord.value;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.355+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.559+01:00", comments="Source Table: additional_attributes")
public static final class AdditionalAttributeRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/AdditionalAttributeRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/AdditionalAttributeRecordMapper.java
index 8fd6d0e0..939ea3d5 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/AdditionalAttributeRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/AdditionalAttributeRecordMapper.java
@@ -32,20 +32,20 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface AdditionalAttributeRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.355+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source Table: additional_attributes")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.355+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source Table: additional_attributes")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.355+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source Table: additional_attributes")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.355+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source Table: additional_attributes")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -56,7 +56,7 @@ public interface AdditionalAttributeRecordMapper {
})
AdditionalAttributeRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source Table: additional_attributes")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -67,22 +67,22 @@ public interface AdditionalAttributeRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source Table: additional_attributes")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source Table: additional_attributes")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(additionalAttributeRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.560+01:00", comments="Source Table: additional_attributes")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, additionalAttributeRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.561+01:00", comments="Source Table: additional_attributes")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, additionalAttributeRecord)
.where(id, isEqualTo(id_))
@@ -90,7 +90,7 @@ public interface AdditionalAttributeRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.561+01:00", comments="Source Table: additional_attributes")
default int insert(AdditionalAttributeRecord record) {
return insert(SqlBuilder.insert(record)
.into(additionalAttributeRecord)
@@ -102,7 +102,7 @@ public interface AdditionalAttributeRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.561+01:00", comments="Source Table: additional_attributes")
default int insertSelective(AdditionalAttributeRecord record) {
return insert(SqlBuilder.insert(record)
.into(additionalAttributeRecord)
@@ -114,19 +114,19 @@ public interface AdditionalAttributeRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.561+01:00", comments="Source Table: additional_attributes")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, entityType, entityId, name, value)
.from(additionalAttributeRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.561+01:00", comments="Source Table: additional_attributes")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, entityType, entityId, name, value)
.from(additionalAttributeRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.561+01:00", comments="Source Table: additional_attributes")
default AdditionalAttributeRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, entityType, entityId, name, value)
.from(additionalAttributeRecord)
@@ -135,7 +135,7 @@ public interface AdditionalAttributeRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.561+01:00", comments="Source Table: additional_attributes")
default UpdateDSL> updateByExample(AdditionalAttributeRecord record) {
return UpdateDSL.updateWithMapper(this::update, additionalAttributeRecord)
.set(entityType).equalTo(record::getEntityType)
@@ -144,7 +144,7 @@ public interface AdditionalAttributeRecordMapper {
.set(value).equalTo(record::getValue);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.561+01:00", comments="Source Table: additional_attributes")
default UpdateDSL> updateByExampleSelective(AdditionalAttributeRecord record) {
return UpdateDSL.updateWithMapper(this::update, additionalAttributeRecord)
.set(entityType).equalToWhenPresent(record::getEntityType)
@@ -153,7 +153,7 @@ public interface AdditionalAttributeRecordMapper {
.set(value).equalToWhenPresent(record::getValue);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.561+01:00", comments="Source Table: additional_attributes")
default int updateByPrimaryKey(AdditionalAttributeRecord record) {
return UpdateDSL.updateWithMapper(this::update, additionalAttributeRecord)
.set(entityType).equalTo(record::getEntityType)
@@ -165,7 +165,7 @@ public interface AdditionalAttributeRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.356+01:00", comments="Source Table: additional_attributes")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.561+01:00", comments="Source Table: additional_attributes")
default int updateByPrimaryKeySelective(AdditionalAttributeRecord record) {
return UpdateDSL.updateWithMapper(this::update, additionalAttributeRecord)
.set(entityType).equalToWhenPresent(record::getEntityType)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientConnectionRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientConnectionRecordDynamicSqlSupport.java
index 8f36e70f..9f6256fa 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientConnectionRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientConnectionRecordDynamicSqlSupport.java
@@ -6,37 +6,37 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class ClientConnectionRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.316+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.523+01:00", comments="Source Table: client_connection")
public static final ClientConnectionRecord clientConnectionRecord = new ClientConnectionRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.316+01:00", comments="Source field: client_connection.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.524+01:00", comments="Source field: client_connection.id")
public static final SqlColumn id = clientConnectionRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.316+01:00", comments="Source field: client_connection.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.524+01:00", comments="Source field: client_connection.institution_id")
public static final SqlColumn institutionId = clientConnectionRecord.institutionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.316+01:00", comments="Source field: client_connection.exam_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.524+01:00", comments="Source field: client_connection.exam_id")
public static final SqlColumn examId = clientConnectionRecord.examId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.316+01:00", comments="Source field: client_connection.status")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.524+01:00", comments="Source field: client_connection.status")
public static final SqlColumn status = clientConnectionRecord.status;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.316+01:00", comments="Source field: client_connection.connection_token")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.524+01:00", comments="Source field: client_connection.connection_token")
public static final SqlColumn connectionToken = clientConnectionRecord.connectionToken;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source field: client_connection.exam_user_session_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.524+01:00", comments="Source field: client_connection.exam_user_session_id")
public static final SqlColumn examUserSessionId = clientConnectionRecord.examUserSessionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source field: client_connection.client_address")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.524+01:00", comments="Source field: client_connection.client_address")
public static final SqlColumn clientAddress = clientConnectionRecord.clientAddress;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source field: client_connection.virtual_client_address")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.524+01:00", comments="Source field: client_connection.virtual_client_address")
public static final SqlColumn virtualClientAddress = clientConnectionRecord.virtualClientAddress;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source field: client_connection.creation_time")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.524+01:00", comments="Source field: client_connection.creation_time")
public static final SqlColumn creationTime = clientConnectionRecord.creationTime;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.316+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.523+01:00", comments="Source Table: client_connection")
public static final class ClientConnectionRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientConnectionRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientConnectionRecordMapper.java
index 92cad9e5..150cfeb2 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientConnectionRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientConnectionRecordMapper.java
@@ -32,20 +32,20 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface ClientConnectionRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.524+01:00", comments="Source Table: client_connection")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.525+01:00", comments="Source Table: client_connection")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.525+01:00", comments="Source Table: client_connection")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.525+01:00", comments="Source Table: client_connection")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -60,7 +60,7 @@ public interface ClientConnectionRecordMapper {
})
ClientConnectionRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.525+01:00", comments="Source Table: client_connection")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -75,22 +75,22 @@ public interface ClientConnectionRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.525+01:00", comments="Source Table: client_connection")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.525+01:00", comments="Source Table: client_connection")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(clientConnectionRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.525+01:00", comments="Source Table: client_connection")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, clientConnectionRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.525+01:00", comments="Source Table: client_connection")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, clientConnectionRecord)
.where(id, isEqualTo(id_))
@@ -98,7 +98,7 @@ public interface ClientConnectionRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.525+01:00", comments="Source Table: client_connection")
default int insert(ClientConnectionRecord record) {
return insert(SqlBuilder.insert(record)
.into(clientConnectionRecord)
@@ -114,7 +114,7 @@ public interface ClientConnectionRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.525+01:00", comments="Source Table: client_connection")
default int insertSelective(ClientConnectionRecord record) {
return insert(SqlBuilder.insert(record)
.into(clientConnectionRecord)
@@ -130,19 +130,19 @@ public interface ClientConnectionRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.526+01:00", comments="Source Table: client_connection")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, institutionId, examId, status, connectionToken, examUserSessionId, clientAddress, virtualClientAddress, creationTime)
.from(clientConnectionRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.317+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.526+01:00", comments="Source Table: client_connection")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, institutionId, examId, status, connectionToken, examUserSessionId, clientAddress, virtualClientAddress, creationTime)
.from(clientConnectionRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.318+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.526+01:00", comments="Source Table: client_connection")
default ClientConnectionRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, institutionId, examId, status, connectionToken, examUserSessionId, clientAddress, virtualClientAddress, creationTime)
.from(clientConnectionRecord)
@@ -151,7 +151,7 @@ public interface ClientConnectionRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.318+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.526+01:00", comments="Source Table: client_connection")
default UpdateDSL> updateByExample(ClientConnectionRecord record) {
return UpdateDSL.updateWithMapper(this::update, clientConnectionRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -164,7 +164,7 @@ public interface ClientConnectionRecordMapper {
.set(creationTime).equalTo(record::getCreationTime);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.318+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.526+01:00", comments="Source Table: client_connection")
default UpdateDSL> updateByExampleSelective(ClientConnectionRecord record) {
return UpdateDSL.updateWithMapper(this::update, clientConnectionRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
@@ -177,7 +177,7 @@ public interface ClientConnectionRecordMapper {
.set(creationTime).equalToWhenPresent(record::getCreationTime);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.318+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.526+01:00", comments="Source Table: client_connection")
default int updateByPrimaryKey(ClientConnectionRecord record) {
return UpdateDSL.updateWithMapper(this::update, clientConnectionRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -193,7 +193,7 @@ public interface ClientConnectionRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.318+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.526+01:00", comments="Source Table: client_connection")
default int updateByPrimaryKeySelective(ClientConnectionRecord record) {
return UpdateDSL.updateWithMapper(this::update, clientConnectionRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientEventRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientEventRecordDynamicSqlSupport.java
index 35717fd2..3ecf8f7e 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientEventRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientEventRecordDynamicSqlSupport.java
@@ -7,31 +7,31 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class ClientEventRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.320+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.528+01:00", comments="Source Table: client_event")
public static final ClientEventRecord clientEventRecord = new ClientEventRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.320+01:00", comments="Source field: client_event.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.529+01:00", comments="Source field: client_event.id")
public static final SqlColumn id = clientEventRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.320+01:00", comments="Source field: client_event.connection_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.529+01:00", comments="Source field: client_event.connection_id")
public static final SqlColumn connectionId = clientEventRecord.connectionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.320+01:00", comments="Source field: client_event.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.529+01:00", comments="Source field: client_event.type")
public static final SqlColumn type = clientEventRecord.type;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.320+01:00", comments="Source field: client_event.client_time")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.529+01:00", comments="Source field: client_event.client_time")
public static final SqlColumn clientTime = clientEventRecord.clientTime;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.320+01:00", comments="Source field: client_event.server_time")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.529+01:00", comments="Source field: client_event.server_time")
public static final SqlColumn serverTime = clientEventRecord.serverTime;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.320+01:00", comments="Source field: client_event.numeric_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.529+01:00", comments="Source field: client_event.numeric_value")
public static final SqlColumn numericValue = clientEventRecord.numericValue;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.320+01:00", comments="Source field: client_event.text")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.529+01:00", comments="Source field: client_event.text")
public static final SqlColumn text = clientEventRecord.text;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.320+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.529+01:00", comments="Source Table: client_event")
public static final class ClientEventRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientEventRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientEventRecordMapper.java
index 14ab51fa..3f6ed9db 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientEventRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ClientEventRecordMapper.java
@@ -32,19 +32,19 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface ClientEventRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.529+01:00", comments="Source Table: client_event")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.529+01:00", comments="Source Table: client_event")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.529+01:00", comments="Source Table: client_event")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.529+01:00", comments="Source Table: client_event")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -57,7 +57,7 @@ public interface ClientEventRecordMapper {
})
ClientEventRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -70,22 +70,22 @@ public interface ClientEventRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(clientEventRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, clientEventRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, clientEventRecord)
.where(id, isEqualTo(id_))
@@ -93,7 +93,7 @@ public interface ClientEventRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
default int insert(ClientEventRecord record) {
return insert(SqlBuilder.insert(record)
.into(clientEventRecord)
@@ -108,7 +108,7 @@ public interface ClientEventRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
default int insertSelective(ClientEventRecord record) {
return insert(SqlBuilder.insert(record)
.into(clientEventRecord)
@@ -123,19 +123,19 @@ public interface ClientEventRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, connectionId, type, clientTime, serverTime, numericValue, text)
.from(clientEventRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, connectionId, type, clientTime, serverTime, numericValue, text)
.from(clientEventRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
default ClientEventRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, connectionId, type, clientTime, serverTime, numericValue, text)
.from(clientEventRecord)
@@ -144,7 +144,7 @@ public interface ClientEventRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.321+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
default UpdateDSL> updateByExample(ClientEventRecord record) {
return UpdateDSL.updateWithMapper(this::update, clientEventRecord)
.set(id).equalTo(record::getId)
@@ -156,7 +156,7 @@ public interface ClientEventRecordMapper {
.set(text).equalTo(record::getText);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.322+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
default UpdateDSL> updateByExampleSelective(ClientEventRecord record) {
return UpdateDSL.updateWithMapper(this::update, clientEventRecord)
.set(id).equalToWhenPresent(record::getId)
@@ -168,7 +168,7 @@ public interface ClientEventRecordMapper {
.set(text).equalToWhenPresent(record::getText);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.322+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.530+01:00", comments="Source Table: client_event")
default int updateByPrimaryKey(ClientEventRecord record) {
return UpdateDSL.updateWithMapper(this::update, clientEventRecord)
.set(connectionId).equalTo(record::getConnectionId)
@@ -182,7 +182,7 @@ public interface ClientEventRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.322+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.531+01:00", comments="Source Table: client_event")
default int updateByPrimaryKeySelective(ClientEventRecord record) {
return UpdateDSL.updateWithMapper(this::update, clientEventRecord)
.set(connectionId).equalToWhenPresent(record::getConnectionId)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationAttributeRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationAttributeRecordDynamicSqlSupport.java
index 007918ec..742d4854 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationAttributeRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationAttributeRecordDynamicSqlSupport.java
@@ -6,34 +6,34 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class ConfigurationAttributeRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.069+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.204+01:00", comments="Source Table: configuration_attribute")
public static final ConfigurationAttributeRecord configurationAttributeRecord = new ConfigurationAttributeRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.072+01:00", comments="Source field: configuration_attribute.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.210+01:00", comments="Source field: configuration_attribute.id")
public static final SqlColumn id = configurationAttributeRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.073+01:00", comments="Source field: configuration_attribute.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.212+01:00", comments="Source field: configuration_attribute.name")
public static final SqlColumn name = configurationAttributeRecord.name;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.074+01:00", comments="Source field: configuration_attribute.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.212+01:00", comments="Source field: configuration_attribute.type")
public static final SqlColumn type = configurationAttributeRecord.type;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.074+01:00", comments="Source field: configuration_attribute.parent_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.212+01:00", comments="Source field: configuration_attribute.parent_id")
public static final SqlColumn parentId = configurationAttributeRecord.parentId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.074+01:00", comments="Source field: configuration_attribute.resources")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.213+01:00", comments="Source field: configuration_attribute.resources")
public static final SqlColumn resources = configurationAttributeRecord.resources;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.074+01:00", comments="Source field: configuration_attribute.validator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.213+01:00", comments="Source field: configuration_attribute.validator")
public static final SqlColumn validator = configurationAttributeRecord.validator;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.075+01:00", comments="Source field: configuration_attribute.dependencies")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.213+01:00", comments="Source field: configuration_attribute.dependencies")
public static final SqlColumn dependencies = configurationAttributeRecord.dependencies;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.075+01:00", comments="Source field: configuration_attribute.default_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.213+01:00", comments="Source field: configuration_attribute.default_value")
public static final SqlColumn defaultValue = configurationAttributeRecord.defaultValue;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.072+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.209+01:00", comments="Source Table: configuration_attribute")
public static final class ConfigurationAttributeRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationAttributeRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationAttributeRecordMapper.java
index 4d38cce0..fcecec90 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationAttributeRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationAttributeRecordMapper.java
@@ -32,20 +32,20 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface ConfigurationAttributeRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.076+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.215+01:00", comments="Source Table: configuration_attribute")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.078+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.217+01:00", comments="Source Table: configuration_attribute")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.078+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.218+01:00", comments="Source Table: configuration_attribute")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.080+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.221+01:00", comments="Source Table: configuration_attribute")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -59,7 +59,7 @@ public interface ConfigurationAttributeRecordMapper {
})
ConfigurationAttributeRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.081+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.223+01:00", comments="Source Table: configuration_attribute")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -73,22 +73,22 @@ public interface ConfigurationAttributeRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.082+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.224+01:00", comments="Source Table: configuration_attribute")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.083+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.225+01:00", comments="Source Table: configuration_attribute")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(configurationAttributeRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.083+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.226+01:00", comments="Source Table: configuration_attribute")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, configurationAttributeRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.084+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.227+01:00", comments="Source Table: configuration_attribute")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, configurationAttributeRecord)
.where(id, isEqualTo(id_))
@@ -96,7 +96,7 @@ public interface ConfigurationAttributeRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.085+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.228+01:00", comments="Source Table: configuration_attribute")
default int insert(ConfigurationAttributeRecord record) {
return insert(SqlBuilder.insert(record)
.into(configurationAttributeRecord)
@@ -111,7 +111,7 @@ public interface ConfigurationAttributeRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.086+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.230+01:00", comments="Source Table: configuration_attribute")
default int insertSelective(ConfigurationAttributeRecord record) {
return insert(SqlBuilder.insert(record)
.into(configurationAttributeRecord)
@@ -126,19 +126,19 @@ public interface ConfigurationAttributeRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.087+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.232+01:00", comments="Source Table: configuration_attribute")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, name, type, parentId, resources, validator, dependencies, defaultValue)
.from(configurationAttributeRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.089+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.234+01:00", comments="Source Table: configuration_attribute")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, name, type, parentId, resources, validator, dependencies, defaultValue)
.from(configurationAttributeRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.090+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.236+01:00", comments="Source Table: configuration_attribute")
default ConfigurationAttributeRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, name, type, parentId, resources, validator, dependencies, defaultValue)
.from(configurationAttributeRecord)
@@ -147,7 +147,7 @@ public interface ConfigurationAttributeRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.091+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.237+01:00", comments="Source Table: configuration_attribute")
default UpdateDSL> updateByExample(ConfigurationAttributeRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationAttributeRecord)
.set(name).equalTo(record::getName)
@@ -159,7 +159,7 @@ public interface ConfigurationAttributeRecordMapper {
.set(defaultValue).equalTo(record::getDefaultValue);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.093+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.239+01:00", comments="Source Table: configuration_attribute")
default UpdateDSL> updateByExampleSelective(ConfigurationAttributeRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationAttributeRecord)
.set(name).equalToWhenPresent(record::getName)
@@ -171,7 +171,7 @@ public interface ConfigurationAttributeRecordMapper {
.set(defaultValue).equalToWhenPresent(record::getDefaultValue);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.094+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.240+01:00", comments="Source Table: configuration_attribute")
default int updateByPrimaryKey(ConfigurationAttributeRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationAttributeRecord)
.set(name).equalTo(record::getName)
@@ -186,7 +186,7 @@ public interface ConfigurationAttributeRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.096+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.242+01:00", comments="Source Table: configuration_attribute")
default int updateByPrimaryKeySelective(ConfigurationAttributeRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationAttributeRecord)
.set(name).equalToWhenPresent(record::getName)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationNodeRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationNodeRecordDynamicSqlSupport.java
index 8c8fb387..6d34dad0 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationNodeRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationNodeRecordDynamicSqlSupport.java
@@ -6,34 +6,34 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class ConfigurationNodeRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.292+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.485+01:00", comments="Source Table: configuration_node")
public static final ConfigurationNodeRecord configurationNodeRecord = new ConfigurationNodeRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.292+01:00", comments="Source field: configuration_node.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.487+01:00", comments="Source field: configuration_node.id")
public static final SqlColumn id = configurationNodeRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.292+01:00", comments="Source field: configuration_node.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.487+01:00", comments="Source field: configuration_node.institution_id")
public static final SqlColumn institutionId = configurationNodeRecord.institutionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.292+01:00", comments="Source field: configuration_node.template_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.487+01:00", comments="Source field: configuration_node.template_id")
public static final SqlColumn templateId = configurationNodeRecord.templateId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.292+01:00", comments="Source field: configuration_node.owner")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.487+01:00", comments="Source field: configuration_node.owner")
public static final SqlColumn owner = configurationNodeRecord.owner;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.292+01:00", comments="Source field: configuration_node.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.488+01:00", comments="Source field: configuration_node.name")
public static final SqlColumn name = configurationNodeRecord.name;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.293+01:00", comments="Source field: configuration_node.description")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.490+01:00", comments="Source field: configuration_node.description")
public static final SqlColumn description = configurationNodeRecord.description;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.294+01:00", comments="Source field: configuration_node.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.491+01:00", comments="Source field: configuration_node.type")
public static final SqlColumn type = configurationNodeRecord.type;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.294+01:00", comments="Source field: configuration_node.status")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.491+01:00", comments="Source field: configuration_node.status")
public static final SqlColumn status = configurationNodeRecord.status;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.292+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.487+01:00", comments="Source Table: configuration_node")
public static final class ConfigurationNodeRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationNodeRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationNodeRecordMapper.java
index c87f9ec0..6eba542b 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationNodeRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationNodeRecordMapper.java
@@ -32,20 +32,20 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface ConfigurationNodeRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.295+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.491+01:00", comments="Source Table: configuration_node")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.295+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.491+01:00", comments="Source Table: configuration_node")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.295+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.491+01:00", comments="Source Table: configuration_node")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.295+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.491+01:00", comments="Source Table: configuration_node")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -59,7 +59,7 @@ public interface ConfigurationNodeRecordMapper {
})
ConfigurationNodeRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.295+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.492+01:00", comments="Source Table: configuration_node")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -73,22 +73,22 @@ public interface ConfigurationNodeRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.295+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.492+01:00", comments="Source Table: configuration_node")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.295+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.492+01:00", comments="Source Table: configuration_node")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(configurationNodeRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.296+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.492+01:00", comments="Source Table: configuration_node")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, configurationNodeRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.296+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.492+01:00", comments="Source Table: configuration_node")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, configurationNodeRecord)
.where(id, isEqualTo(id_))
@@ -96,7 +96,7 @@ public interface ConfigurationNodeRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.296+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.493+01:00", comments="Source Table: configuration_node")
default int insert(ConfigurationNodeRecord record) {
return insert(SqlBuilder.insert(record)
.into(configurationNodeRecord)
@@ -111,7 +111,7 @@ public interface ConfigurationNodeRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.296+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.493+01:00", comments="Source Table: configuration_node")
default int insertSelective(ConfigurationNodeRecord record) {
return insert(SqlBuilder.insert(record)
.into(configurationNodeRecord)
@@ -126,19 +126,19 @@ public interface ConfigurationNodeRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.296+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.493+01:00", comments="Source Table: configuration_node")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, institutionId, templateId, owner, name, description, type, status)
.from(configurationNodeRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.296+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.493+01:00", comments="Source Table: configuration_node")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, institutionId, templateId, owner, name, description, type, status)
.from(configurationNodeRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.296+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.493+01:00", comments="Source Table: configuration_node")
default ConfigurationNodeRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, institutionId, templateId, owner, name, description, type, status)
.from(configurationNodeRecord)
@@ -147,7 +147,7 @@ public interface ConfigurationNodeRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.296+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.493+01:00", comments="Source Table: configuration_node")
default UpdateDSL> updateByExample(ConfigurationNodeRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationNodeRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -159,7 +159,7 @@ public interface ConfigurationNodeRecordMapper {
.set(status).equalTo(record::getStatus);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.296+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.495+01:00", comments="Source Table: configuration_node")
default UpdateDSL> updateByExampleSelective(ConfigurationNodeRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationNodeRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
@@ -171,7 +171,7 @@ public interface ConfigurationNodeRecordMapper {
.set(status).equalToWhenPresent(record::getStatus);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.297+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.498+01:00", comments="Source Table: configuration_node")
default int updateByPrimaryKey(ConfigurationNodeRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationNodeRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -186,7 +186,7 @@ public interface ConfigurationNodeRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.297+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.499+01:00", comments="Source Table: configuration_node")
default int updateByPrimaryKeySelective(ConfigurationNodeRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationNodeRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationRecordDynamicSqlSupport.java
index 33db73aa..b460a4fa 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationRecordDynamicSqlSupport.java
@@ -7,28 +7,28 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class ConfigurationRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.283+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.478+01:00", comments="Source Table: configuration")
public static final ConfigurationRecord configurationRecord = new ConfigurationRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.284+01:00", comments="Source field: configuration.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.479+01:00", comments="Source field: configuration.id")
public static final SqlColumn id = configurationRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.284+01:00", comments="Source field: configuration.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.479+01:00", comments="Source field: configuration.institution_id")
public static final SqlColumn institutionId = configurationRecord.institutionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.284+01:00", comments="Source field: configuration.configuration_node_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.479+01:00", comments="Source field: configuration.configuration_node_id")
public static final SqlColumn configurationNodeId = configurationRecord.configurationNodeId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.285+01:00", comments="Source field: configuration.version")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.480+01:00", comments="Source field: configuration.version")
public static final SqlColumn version = configurationRecord.version;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.285+01:00", comments="Source field: configuration.version_date")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.480+01:00", comments="Source field: configuration.version_date")
public static final SqlColumn versionDate = configurationRecord.versionDate;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.286+01:00", comments="Source field: configuration.followup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.480+01:00", comments="Source field: configuration.followup")
public static final SqlColumn followup = configurationRecord.followup;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.283+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.479+01:00", comments="Source Table: configuration")
public static final class ConfigurationRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationRecordMapper.java
index dbddf85b..6eda4728 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationRecordMapper.java
@@ -34,20 +34,20 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface ConfigurationRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.286+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.481+01:00", comments="Source Table: configuration")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.287+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.481+01:00", comments="Source Table: configuration")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.287+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.481+01:00", comments="Source Table: configuration")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.287+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.481+01:00", comments="Source Table: configuration")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -59,7 +59,7 @@ public interface ConfigurationRecordMapper {
})
ConfigurationRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.287+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.481+01:00", comments="Source Table: configuration")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -71,22 +71,22 @@ public interface ConfigurationRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.287+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.481+01:00", comments="Source Table: configuration")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.287+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.481+01:00", comments="Source Table: configuration")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(configurationRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.287+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.481+01:00", comments="Source Table: configuration")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, configurationRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.288+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.482+01:00", comments="Source Table: configuration")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, configurationRecord)
.where(id, isEqualTo(id_))
@@ -94,7 +94,7 @@ public interface ConfigurationRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.288+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.482+01:00", comments="Source Table: configuration")
default int insert(ConfigurationRecord record) {
return insert(SqlBuilder.insert(record)
.into(configurationRecord)
@@ -107,7 +107,7 @@ public interface ConfigurationRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.288+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.482+01:00", comments="Source Table: configuration")
default int insertSelective(ConfigurationRecord record) {
return insert(SqlBuilder.insert(record)
.into(configurationRecord)
@@ -120,19 +120,19 @@ public interface ConfigurationRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.288+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.482+01:00", comments="Source Table: configuration")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, institutionId, configurationNodeId, version, versionDate, followup)
.from(configurationRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.288+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.482+01:00", comments="Source Table: configuration")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, institutionId, configurationNodeId, version, versionDate, followup)
.from(configurationRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.288+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.482+01:00", comments="Source Table: configuration")
default ConfigurationRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, institutionId, configurationNodeId, version, versionDate, followup)
.from(configurationRecord)
@@ -141,7 +141,7 @@ public interface ConfigurationRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.288+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.482+01:00", comments="Source Table: configuration")
default UpdateDSL> updateByExample(ConfigurationRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -151,7 +151,7 @@ public interface ConfigurationRecordMapper {
.set(followup).equalTo(record::getFollowup);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.288+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.483+01:00", comments="Source Table: configuration")
default UpdateDSL> updateByExampleSelective(ConfigurationRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
@@ -161,7 +161,7 @@ public interface ConfigurationRecordMapper {
.set(followup).equalToWhenPresent(record::getFollowup);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.289+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.483+01:00", comments="Source Table: configuration")
default int updateByPrimaryKey(ConfigurationRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -174,7 +174,7 @@ public interface ConfigurationRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.289+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.483+01:00", comments="Source Table: configuration")
default int updateByPrimaryKeySelective(ConfigurationRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationValueRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationValueRecordDynamicSqlSupport.java
index 02280128..339bcfaf 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationValueRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationValueRecordDynamicSqlSupport.java
@@ -6,28 +6,28 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class ConfigurationValueRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.252+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.444+01:00", comments="Source Table: configuration_value")
public static final ConfigurationValueRecord configurationValueRecord = new ConfigurationValueRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.253+01:00", comments="Source field: configuration_value.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.444+01:00", comments="Source field: configuration_value.id")
public static final SqlColumn id = configurationValueRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.253+01:00", comments="Source field: configuration_value.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.444+01:00", comments="Source field: configuration_value.institution_id")
public static final SqlColumn institutionId = configurationValueRecord.institutionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.253+01:00", comments="Source field: configuration_value.configuration_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.444+01:00", comments="Source field: configuration_value.configuration_id")
public static final SqlColumn configurationId = configurationValueRecord.configurationId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.253+01:00", comments="Source field: configuration_value.configuration_attribute_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.445+01:00", comments="Source field: configuration_value.configuration_attribute_id")
public static final SqlColumn configurationAttributeId = configurationValueRecord.configurationAttributeId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.253+01:00", comments="Source field: configuration_value.list_index")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.445+01:00", comments="Source field: configuration_value.list_index")
public static final SqlColumn listIndex = configurationValueRecord.listIndex;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.253+01:00", comments="Source field: configuration_value.value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.445+01:00", comments="Source field: configuration_value.value")
public static final SqlColumn value = configurationValueRecord.value;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.253+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.444+01:00", comments="Source Table: configuration_value")
public static final class ConfigurationValueRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationValueRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationValueRecordMapper.java
index e80cbdef..b8f3791e 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationValueRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ConfigurationValueRecordMapper.java
@@ -31,19 +31,19 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface ConfigurationValueRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.254+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.445+01:00", comments="Source Table: configuration_value")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.254+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.445+01:00", comments="Source Table: configuration_value")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.254+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.445+01:00", comments="Source Table: configuration_value")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.254+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.445+01:00", comments="Source Table: configuration_value")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -55,7 +55,7 @@ public interface ConfigurationValueRecordMapper {
})
ConfigurationValueRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.254+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.445+01:00", comments="Source Table: configuration_value")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -67,22 +67,22 @@ public interface ConfigurationValueRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.254+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.446+01:00", comments="Source Table: configuration_value")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.254+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.446+01:00", comments="Source Table: configuration_value")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(configurationValueRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.255+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.446+01:00", comments="Source Table: configuration_value")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, configurationValueRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.255+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.446+01:00", comments="Source Table: configuration_value")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, configurationValueRecord)
.where(id, isEqualTo(id_))
@@ -90,7 +90,7 @@ public interface ConfigurationValueRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.255+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.446+01:00", comments="Source Table: configuration_value")
default int insert(ConfigurationValueRecord record) {
return insert(SqlBuilder.insert(record)
.into(configurationValueRecord)
@@ -104,7 +104,7 @@ public interface ConfigurationValueRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.255+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.446+01:00", comments="Source Table: configuration_value")
default int insertSelective(ConfigurationValueRecord record) {
return insert(SqlBuilder.insert(record)
.into(configurationValueRecord)
@@ -118,19 +118,19 @@ public interface ConfigurationValueRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.255+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.446+01:00", comments="Source Table: configuration_value")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, institutionId, configurationId, configurationAttributeId, listIndex, value)
.from(configurationValueRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.255+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.446+01:00", comments="Source Table: configuration_value")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, institutionId, configurationId, configurationAttributeId, listIndex, value)
.from(configurationValueRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.255+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.446+01:00", comments="Source Table: configuration_value")
default ConfigurationValueRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, institutionId, configurationId, configurationAttributeId, listIndex, value)
.from(configurationValueRecord)
@@ -139,7 +139,7 @@ public interface ConfigurationValueRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.255+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.446+01:00", comments="Source Table: configuration_value")
default UpdateDSL> updateByExample(ConfigurationValueRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationValueRecord)
.set(id).equalTo(record::getId)
@@ -150,7 +150,7 @@ public interface ConfigurationValueRecordMapper {
.set(value).equalTo(record::getValue);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.255+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.447+01:00", comments="Source Table: configuration_value")
default UpdateDSL> updateByExampleSelective(ConfigurationValueRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationValueRecord)
.set(id).equalToWhenPresent(record::getId)
@@ -161,7 +161,7 @@ public interface ConfigurationValueRecordMapper {
.set(value).equalToWhenPresent(record::getValue);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.255+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.447+01:00", comments="Source Table: configuration_value")
default int updateByPrimaryKey(ConfigurationValueRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationValueRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -174,7 +174,7 @@ public interface ConfigurationValueRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.256+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.447+01:00", comments="Source Table: configuration_value")
default int updateByPrimaryKeySelective(ConfigurationValueRecord record) {
return UpdateDSL.updateWithMapper(this::update, configurationValueRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamConfigurationMapRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamConfigurationMapRecordDynamicSqlSupport.java
index 216db6ce..f4eafad8 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamConfigurationMapRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamConfigurationMapRecordDynamicSqlSupport.java
@@ -6,28 +6,28 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class ExamConfigurationMapRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.301+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.514+01:00", comments="Source Table: exam_configuration_map")
public static final ExamConfigurationMapRecord examConfigurationMapRecord = new ExamConfigurationMapRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.301+01:00", comments="Source field: exam_configuration_map.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.514+01:00", comments="Source field: exam_configuration_map.id")
public static final SqlColumn id = examConfigurationMapRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.301+01:00", comments="Source field: exam_configuration_map.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.514+01:00", comments="Source field: exam_configuration_map.institution_id")
public static final SqlColumn institutionId = examConfigurationMapRecord.institutionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.301+01:00", comments="Source field: exam_configuration_map.exam_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.514+01:00", comments="Source field: exam_configuration_map.exam_id")
public static final SqlColumn examId = examConfigurationMapRecord.examId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.301+01:00", comments="Source field: exam_configuration_map.configuration_node_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.514+01:00", comments="Source field: exam_configuration_map.configuration_node_id")
public static final SqlColumn configurationNodeId = examConfigurationMapRecord.configurationNodeId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.301+01:00", comments="Source field: exam_configuration_map.user_names")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.514+01:00", comments="Source field: exam_configuration_map.user_names")
public static final SqlColumn userNames = examConfigurationMapRecord.userNames;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.301+01:00", comments="Source field: exam_configuration_map.encrypt_secret")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.515+01:00", comments="Source field: exam_configuration_map.encrypt_secret")
public static final SqlColumn encryptSecret = examConfigurationMapRecord.encryptSecret;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.301+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.514+01:00", comments="Source Table: exam_configuration_map")
public static final class ExamConfigurationMapRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamConfigurationMapRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamConfigurationMapRecordMapper.java
index d8c653f6..3a32bf48 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamConfigurationMapRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamConfigurationMapRecordMapper.java
@@ -32,20 +32,20 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface ExamConfigurationMapRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.302+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.515+01:00", comments="Source Table: exam_configuration_map")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.302+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.515+01:00", comments="Source Table: exam_configuration_map")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.302+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.515+01:00", comments="Source Table: exam_configuration_map")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.302+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.515+01:00", comments="Source Table: exam_configuration_map")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -57,7 +57,7 @@ public interface ExamConfigurationMapRecordMapper {
})
ExamConfigurationMapRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.302+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.515+01:00", comments="Source Table: exam_configuration_map")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -69,22 +69,22 @@ public interface ExamConfigurationMapRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.302+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.515+01:00", comments="Source Table: exam_configuration_map")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.302+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.515+01:00", comments="Source Table: exam_configuration_map")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(examConfigurationMapRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.302+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.516+01:00", comments="Source Table: exam_configuration_map")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, examConfigurationMapRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.302+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.516+01:00", comments="Source Table: exam_configuration_map")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, examConfigurationMapRecord)
.where(id, isEqualTo(id_))
@@ -92,7 +92,7 @@ public interface ExamConfigurationMapRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.302+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.516+01:00", comments="Source Table: exam_configuration_map")
default int insert(ExamConfigurationMapRecord record) {
return insert(SqlBuilder.insert(record)
.into(examConfigurationMapRecord)
@@ -105,7 +105,7 @@ public interface ExamConfigurationMapRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.303+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.516+01:00", comments="Source Table: exam_configuration_map")
default int insertSelective(ExamConfigurationMapRecord record) {
return insert(SqlBuilder.insert(record)
.into(examConfigurationMapRecord)
@@ -118,19 +118,19 @@ public interface ExamConfigurationMapRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.303+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.516+01:00", comments="Source Table: exam_configuration_map")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, institutionId, examId, configurationNodeId, userNames, encryptSecret)
.from(examConfigurationMapRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.303+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.516+01:00", comments="Source Table: exam_configuration_map")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, institutionId, examId, configurationNodeId, userNames, encryptSecret)
.from(examConfigurationMapRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.303+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.516+01:00", comments="Source Table: exam_configuration_map")
default ExamConfigurationMapRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, institutionId, examId, configurationNodeId, userNames, encryptSecret)
.from(examConfigurationMapRecord)
@@ -139,7 +139,7 @@ public interface ExamConfigurationMapRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.303+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.516+01:00", comments="Source Table: exam_configuration_map")
default UpdateDSL> updateByExample(ExamConfigurationMapRecord record) {
return UpdateDSL.updateWithMapper(this::update, examConfigurationMapRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -149,7 +149,7 @@ public interface ExamConfigurationMapRecordMapper {
.set(encryptSecret).equalTo(record::getEncryptSecret);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.303+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.516+01:00", comments="Source Table: exam_configuration_map")
default UpdateDSL> updateByExampleSelective(ExamConfigurationMapRecord record) {
return UpdateDSL.updateWithMapper(this::update, examConfigurationMapRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
@@ -159,7 +159,7 @@ public interface ExamConfigurationMapRecordMapper {
.set(encryptSecret).equalToWhenPresent(record::getEncryptSecret);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.303+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.517+01:00", comments="Source Table: exam_configuration_map")
default int updateByPrimaryKey(ExamConfigurationMapRecord record) {
return UpdateDSL.updateWithMapper(this::update, examConfigurationMapRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -172,7 +172,7 @@ public interface ExamConfigurationMapRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.303+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.517+01:00", comments="Source Table: exam_configuration_map")
default int updateByPrimaryKeySelective(ExamConfigurationMapRecord record) {
return UpdateDSL.updateWithMapper(this::update, examConfigurationMapRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamRecordDynamicSqlSupport.java
index d8aeb26b..4fa668ee 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamRecordDynamicSqlSupport.java
@@ -6,49 +6,52 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class ExamRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.308+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.519+01:00", comments="Source Table: exam")
public static final ExamRecord examRecord = new ExamRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.309+01:00", comments="Source field: exam.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.520+01:00", comments="Source field: exam.id")
public static final SqlColumn id = examRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.309+01:00", comments="Source field: exam.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.520+01:00", comments="Source field: exam.institution_id")
public static final SqlColumn institutionId = examRecord.institutionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.309+01:00", comments="Source field: exam.lms_setup_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.520+01:00", comments="Source field: exam.lms_setup_id")
public static final SqlColumn lmsSetupId = examRecord.lmsSetupId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.309+01:00", comments="Source field: exam.external_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.520+01:00", comments="Source field: exam.external_id")
public static final SqlColumn externalId = examRecord.externalId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.309+01:00", comments="Source field: exam.owner")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.520+01:00", comments="Source field: exam.owner")
public static final SqlColumn owner = examRecord.owner;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.310+01:00", comments="Source field: exam.supporter")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.520+01:00", comments="Source field: exam.supporter")
public static final SqlColumn supporter = examRecord.supporter;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.311+01:00", comments="Source field: exam.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.520+01:00", comments="Source field: exam.type")
public static final SqlColumn type = examRecord.type;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.311+01:00", comments="Source field: exam.quit_password")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.520+01:00", comments="Source field: exam.quit_password")
public static final SqlColumn quitPassword = examRecord.quitPassword;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.311+01:00", comments="Source field: exam.browser_keys")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.520+01:00", comments="Source field: exam.browser_keys")
public static final SqlColumn browserKeys = examRecord.browserKeys;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.312+01:00", comments="Source field: exam.status")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.520+01:00", comments="Source field: exam.status")
public static final SqlColumn status = examRecord.status;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.312+01:00", comments="Source field: exam.updating")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source field: exam.lms_seb_restriction")
+ public static final SqlColumn lmsSebRestriction = examRecord.lmsSebRestriction;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source field: exam.updating")
public static final SqlColumn updating = examRecord.updating;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.312+01:00", comments="Source field: exam.lastupdate")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source field: exam.lastupdate")
public static final SqlColumn lastupdate = examRecord.lastupdate;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.312+01:00", comments="Source field: exam.active")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source field: exam.active")
public static final SqlColumn active = examRecord.active;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.309+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.519+01:00", comments="Source Table: exam")
public static final class ExamRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
@@ -70,6 +73,8 @@ public final class ExamRecordDynamicSqlSupport {
public final SqlColumn status = column("status", JDBCType.VARCHAR);
+ public final SqlColumn lmsSebRestriction = column("lms_seb_restriction", JDBCType.INTEGER);
+
public final SqlColumn updating = column("updating", JDBCType.INTEGER);
public final SqlColumn lastupdate = column("lastupdate", JDBCType.VARCHAR);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamRecordMapper.java
index e23d3886..8050294b 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/ExamRecordMapper.java
@@ -32,20 +32,20 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface ExamRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.312+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.312+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.312+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.312+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -58,13 +58,14 @@ public interface ExamRecordMapper {
@Arg(column="quit_password", javaType=String.class, jdbcType=JdbcType.VARCHAR),
@Arg(column="browser_keys", javaType=String.class, jdbcType=JdbcType.VARCHAR),
@Arg(column="status", javaType=String.class, jdbcType=JdbcType.VARCHAR),
+ @Arg(column="lms_seb_restriction", javaType=Integer.class, jdbcType=JdbcType.INTEGER),
@Arg(column="updating", javaType=Integer.class, jdbcType=JdbcType.INTEGER),
@Arg(column="lastupdate", javaType=String.class, jdbcType=JdbcType.VARCHAR),
@Arg(column="active", javaType=Integer.class, jdbcType=JdbcType.INTEGER)
})
ExamRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.313+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -77,28 +78,29 @@ public interface ExamRecordMapper {
@Arg(column="quit_password", javaType=String.class, jdbcType=JdbcType.VARCHAR),
@Arg(column="browser_keys", javaType=String.class, jdbcType=JdbcType.VARCHAR),
@Arg(column="status", javaType=String.class, jdbcType=JdbcType.VARCHAR),
+ @Arg(column="lms_seb_restriction", javaType=Integer.class, jdbcType=JdbcType.INTEGER),
@Arg(column="updating", javaType=Integer.class, jdbcType=JdbcType.INTEGER),
@Arg(column="lastupdate", javaType=String.class, jdbcType=JdbcType.VARCHAR),
@Arg(column="active", javaType=Integer.class, jdbcType=JdbcType.INTEGER)
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.313+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.313+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(examRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.313+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, examRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.313+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, examRecord)
.where(id, isEqualTo(id_))
@@ -106,7 +108,7 @@ public interface ExamRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.313+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
default int insert(ExamRecord record) {
return insert(SqlBuilder.insert(record)
.into(examRecord)
@@ -119,6 +121,7 @@ public interface ExamRecordMapper {
.map(quitPassword).toProperty("quitPassword")
.map(browserKeys).toProperty("browserKeys")
.map(status).toProperty("status")
+ .map(lmsSebRestriction).toProperty("lmsSebRestriction")
.map(updating).toProperty("updating")
.map(lastupdate).toProperty("lastupdate")
.map(active).toProperty("active")
@@ -126,7 +129,7 @@ public interface ExamRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.313+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
default int insertSelective(ExamRecord record) {
return insert(SqlBuilder.insert(record)
.into(examRecord)
@@ -139,6 +142,7 @@ public interface ExamRecordMapper {
.map(quitPassword).toPropertyWhenPresent("quitPassword", record::getQuitPassword)
.map(browserKeys).toPropertyWhenPresent("browserKeys", record::getBrowserKeys)
.map(status).toPropertyWhenPresent("status", record::getStatus)
+ .map(lmsSebRestriction).toPropertyWhenPresent("lmsSebRestriction", record::getLmsSebRestriction)
.map(updating).toPropertyWhenPresent("updating", record::getUpdating)
.map(lastupdate).toPropertyWhenPresent("lastupdate", record::getLastupdate)
.map(active).toPropertyWhenPresent("active", record::getActive)
@@ -146,28 +150,28 @@ public interface ExamRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.313+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
default QueryExpressionDSL>> selectByExample() {
- return SelectDSL.selectWithMapper(this::selectMany, id, institutionId, lmsSetupId, externalId, owner, supporter, type, quitPassword, browserKeys, status, updating, lastupdate, active)
+ return SelectDSL.selectWithMapper(this::selectMany, id, institutionId, lmsSetupId, externalId, owner, supporter, type, quitPassword, browserKeys, status, lmsSebRestriction, updating, lastupdate, active)
.from(examRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.313+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
default QueryExpressionDSL>> selectDistinctByExample() {
- return SelectDSL.selectDistinctWithMapper(this::selectMany, id, institutionId, lmsSetupId, externalId, owner, supporter, type, quitPassword, browserKeys, status, updating, lastupdate, active)
+ return SelectDSL.selectDistinctWithMapper(this::selectMany, id, institutionId, lmsSetupId, externalId, owner, supporter, type, quitPassword, browserKeys, status, lmsSebRestriction, updating, lastupdate, active)
.from(examRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.314+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.521+01:00", comments="Source Table: exam")
default ExamRecord selectByPrimaryKey(Long id_) {
- return SelectDSL.selectWithMapper(this::selectOne, id, institutionId, lmsSetupId, externalId, owner, supporter, type, quitPassword, browserKeys, status, updating, lastupdate, active)
+ return SelectDSL.selectWithMapper(this::selectOne, id, institutionId, lmsSetupId, externalId, owner, supporter, type, quitPassword, browserKeys, status, lmsSebRestriction, updating, lastupdate, active)
.from(examRecord)
.where(id, isEqualTo(id_))
.build()
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.314+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.522+01:00", comments="Source Table: exam")
default UpdateDSL> updateByExample(ExamRecord record) {
return UpdateDSL.updateWithMapper(this::update, examRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -179,12 +183,13 @@ public interface ExamRecordMapper {
.set(quitPassword).equalTo(record::getQuitPassword)
.set(browserKeys).equalTo(record::getBrowserKeys)
.set(status).equalTo(record::getStatus)
+ .set(lmsSebRestriction).equalTo(record::getLmsSebRestriction)
.set(updating).equalTo(record::getUpdating)
.set(lastupdate).equalTo(record::getLastupdate)
.set(active).equalTo(record::getActive);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.314+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.522+01:00", comments="Source Table: exam")
default UpdateDSL> updateByExampleSelective(ExamRecord record) {
return UpdateDSL.updateWithMapper(this::update, examRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
@@ -196,12 +201,13 @@ public interface ExamRecordMapper {
.set(quitPassword).equalToWhenPresent(record::getQuitPassword)
.set(browserKeys).equalToWhenPresent(record::getBrowserKeys)
.set(status).equalToWhenPresent(record::getStatus)
+ .set(lmsSebRestriction).equalToWhenPresent(record::getLmsSebRestriction)
.set(updating).equalToWhenPresent(record::getUpdating)
.set(lastupdate).equalToWhenPresent(record::getLastupdate)
.set(active).equalToWhenPresent(record::getActive);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.314+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.522+01:00", comments="Source Table: exam")
default int updateByPrimaryKey(ExamRecord record) {
return UpdateDSL.updateWithMapper(this::update, examRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -213,6 +219,7 @@ public interface ExamRecordMapper {
.set(quitPassword).equalTo(record::getQuitPassword)
.set(browserKeys).equalTo(record::getBrowserKeys)
.set(status).equalTo(record::getStatus)
+ .set(lmsSebRestriction).equalTo(record::getLmsSebRestriction)
.set(updating).equalTo(record::getUpdating)
.set(lastupdate).equalTo(record::getLastupdate)
.set(active).equalTo(record::getActive)
@@ -221,7 +228,7 @@ public interface ExamRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.314+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.522+01:00", comments="Source Table: exam")
default int updateByPrimaryKeySelective(ExamRecord record) {
return UpdateDSL.updateWithMapper(this::update, examRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
@@ -233,6 +240,7 @@ public interface ExamRecordMapper {
.set(quitPassword).equalToWhenPresent(record::getQuitPassword)
.set(browserKeys).equalToWhenPresent(record::getBrowserKeys)
.set(status).equalToWhenPresent(record::getStatus)
+ .set(lmsSebRestriction).equalToWhenPresent(record::getLmsSebRestriction)
.set(updating).equalToWhenPresent(record::getUpdating)
.set(lastupdate).equalToWhenPresent(record::getLastupdate)
.set(active).equalToWhenPresent(record::getActive)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/IndicatorRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/IndicatorRecordDynamicSqlSupport.java
index da4105b1..1c9ee056 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/IndicatorRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/IndicatorRecordDynamicSqlSupport.java
@@ -6,25 +6,25 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class IndicatorRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.323+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.532+01:00", comments="Source Table: indicator")
public static final IndicatorRecord indicatorRecord = new IndicatorRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.323+01:00", comments="Source field: indicator.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.532+01:00", comments="Source field: indicator.id")
public static final SqlColumn id = indicatorRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.323+01:00", comments="Source field: indicator.exam_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.532+01:00", comments="Source field: indicator.exam_id")
public static final SqlColumn examId = indicatorRecord.examId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.323+01:00", comments="Source field: indicator.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.532+01:00", comments="Source field: indicator.type")
public static final SqlColumn type = indicatorRecord.type;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source field: indicator.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.532+01:00", comments="Source field: indicator.name")
public static final SqlColumn name = indicatorRecord.name;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source field: indicator.color")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.532+01:00", comments="Source field: indicator.color")
public static final SqlColumn color = indicatorRecord.color;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.323+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.532+01:00", comments="Source Table: indicator")
public static final class IndicatorRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/IndicatorRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/IndicatorRecordMapper.java
index b9689a80..be2c59e2 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/IndicatorRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/IndicatorRecordMapper.java
@@ -32,20 +32,20 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface IndicatorRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.532+01:00", comments="Source Table: indicator")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.532+01:00", comments="Source Table: indicator")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.532+01:00", comments="Source Table: indicator")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -56,7 +56,7 @@ public interface IndicatorRecordMapper {
})
IndicatorRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -67,22 +67,22 @@ public interface IndicatorRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(indicatorRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, indicatorRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, indicatorRecord)
.where(id, isEqualTo(id_))
@@ -90,7 +90,7 @@ public interface IndicatorRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
default int insert(IndicatorRecord record) {
return insert(SqlBuilder.insert(record)
.into(indicatorRecord)
@@ -102,7 +102,7 @@ public interface IndicatorRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
default int insertSelective(IndicatorRecord record) {
return insert(SqlBuilder.insert(record)
.into(indicatorRecord)
@@ -114,19 +114,19 @@ public interface IndicatorRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, examId, type, name, color)
.from(indicatorRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.324+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, examId, type, name, color)
.from(indicatorRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.325+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
default IndicatorRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, examId, type, name, color)
.from(indicatorRecord)
@@ -135,7 +135,7 @@ public interface IndicatorRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.325+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
default UpdateDSL> updateByExample(IndicatorRecord record) {
return UpdateDSL.updateWithMapper(this::update, indicatorRecord)
.set(examId).equalTo(record::getExamId)
@@ -144,7 +144,7 @@ public interface IndicatorRecordMapper {
.set(color).equalTo(record::getColor);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.325+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
default UpdateDSL> updateByExampleSelective(IndicatorRecord record) {
return UpdateDSL.updateWithMapper(this::update, indicatorRecord)
.set(examId).equalToWhenPresent(record::getExamId)
@@ -153,7 +153,7 @@ public interface IndicatorRecordMapper {
.set(color).equalToWhenPresent(record::getColor);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.325+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
default int updateByPrimaryKey(IndicatorRecord record) {
return UpdateDSL.updateWithMapper(this::update, indicatorRecord)
.set(examId).equalTo(record::getExamId)
@@ -165,7 +165,7 @@ public interface IndicatorRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.325+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.533+01:00", comments="Source Table: indicator")
default int updateByPrimaryKeySelective(IndicatorRecord record) {
return UpdateDSL.updateWithMapper(this::update, indicatorRecord)
.set(examId).equalToWhenPresent(record::getExamId)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/InstitutionRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/InstitutionRecordDynamicSqlSupport.java
index 905050c4..4081fa5a 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/InstitutionRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/InstitutionRecordDynamicSqlSupport.java
@@ -6,28 +6,28 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class InstitutionRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.333+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.538+01:00", comments="Source Table: institution")
public static final InstitutionRecord institutionRecord = new InstitutionRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.333+01:00", comments="Source field: institution.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.538+01:00", comments="Source field: institution.id")
public static final SqlColumn id = institutionRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.333+01:00", comments="Source field: institution.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.538+01:00", comments="Source field: institution.name")
public static final SqlColumn name = institutionRecord.name;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.333+01:00", comments="Source field: institution.url_suffix")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.538+01:00", comments="Source field: institution.url_suffix")
public static final SqlColumn urlSuffix = institutionRecord.urlSuffix;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.333+01:00", comments="Source field: institution.theme_name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.538+01:00", comments="Source field: institution.theme_name")
public static final SqlColumn themeName = institutionRecord.themeName;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.333+01:00", comments="Source field: institution.active")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.538+01:00", comments="Source field: institution.active")
public static final SqlColumn active = institutionRecord.active;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.333+01:00", comments="Source field: institution.logo_image")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source field: institution.logo_image")
public static final SqlColumn logoImage = institutionRecord.logoImage;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.333+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.538+01:00", comments="Source Table: institution")
public static final class InstitutionRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/InstitutionRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/InstitutionRecordMapper.java
index 2ac5732b..14543de1 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/InstitutionRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/InstitutionRecordMapper.java
@@ -32,20 +32,20 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface InstitutionRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.333+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source Table: institution")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.333+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source Table: institution")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.333+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source Table: institution")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source Table: institution")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -57,7 +57,7 @@ public interface InstitutionRecordMapper {
})
InstitutionRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source Table: institution")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -69,22 +69,22 @@ public interface InstitutionRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source Table: institution")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source Table: institution")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(institutionRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source Table: institution")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, institutionRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source Table: institution")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, institutionRecord)
.where(id, isEqualTo(id_))
@@ -92,7 +92,7 @@ public interface InstitutionRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source Table: institution")
default int insert(InstitutionRecord record) {
return insert(SqlBuilder.insert(record)
.into(institutionRecord)
@@ -105,7 +105,7 @@ public interface InstitutionRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source Table: institution")
default int insertSelective(InstitutionRecord record) {
return insert(SqlBuilder.insert(record)
.into(institutionRecord)
@@ -118,19 +118,19 @@ public interface InstitutionRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.539+01:00", comments="Source Table: institution")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, name, urlSuffix, themeName, active, logoImage)
.from(institutionRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.540+01:00", comments="Source Table: institution")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, name, urlSuffix, themeName, active, logoImage)
.from(institutionRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.540+01:00", comments="Source Table: institution")
default InstitutionRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, name, urlSuffix, themeName, active, logoImage)
.from(institutionRecord)
@@ -139,7 +139,7 @@ public interface InstitutionRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.540+01:00", comments="Source Table: institution")
default UpdateDSL> updateByExample(InstitutionRecord record) {
return UpdateDSL.updateWithMapper(this::update, institutionRecord)
.set(name).equalTo(record::getName)
@@ -149,7 +149,7 @@ public interface InstitutionRecordMapper {
.set(logoImage).equalTo(record::getLogoImage);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.334+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.540+01:00", comments="Source Table: institution")
default UpdateDSL> updateByExampleSelective(InstitutionRecord record) {
return UpdateDSL.updateWithMapper(this::update, institutionRecord)
.set(name).equalToWhenPresent(record::getName)
@@ -159,7 +159,7 @@ public interface InstitutionRecordMapper {
.set(logoImage).equalToWhenPresent(record::getLogoImage);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.335+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.540+01:00", comments="Source Table: institution")
default int updateByPrimaryKey(InstitutionRecord record) {
return UpdateDSL.updateWithMapper(this::update, institutionRecord)
.set(name).equalTo(record::getName)
@@ -172,7 +172,7 @@ public interface InstitutionRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.335+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.540+01:00", comments="Source Table: institution")
default int updateByPrimaryKeySelective(InstitutionRecord record) {
return UpdateDSL.updateWithMapper(this::update, institutionRecord)
.set(name).equalToWhenPresent(record::getName)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/LmsSetupRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/LmsSetupRecordDynamicSqlSupport.java
index bd19fde6..bd8ec1b7 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/LmsSetupRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/LmsSetupRecordDynamicSqlSupport.java
@@ -6,46 +6,46 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class LmsSetupRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.340+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.545+01:00", comments="Source Table: lms_setup")
public static final LmsSetupRecord lmsSetupRecord = new LmsSetupRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.340+01:00", comments="Source field: lms_setup.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.545+01:00", comments="Source field: lms_setup.id")
public static final SqlColumn id = lmsSetupRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.340+01:00", comments="Source field: lms_setup.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.545+01:00", comments="Source field: lms_setup.institution_id")
public static final SqlColumn institutionId = lmsSetupRecord.institutionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.340+01:00", comments="Source field: lms_setup.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.545+01:00", comments="Source field: lms_setup.name")
public static final SqlColumn name = lmsSetupRecord.name;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.340+01:00", comments="Source field: lms_setup.lms_type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.545+01:00", comments="Source field: lms_setup.lms_type")
public static final SqlColumn lmsType = lmsSetupRecord.lmsType;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.340+01:00", comments="Source field: lms_setup.lms_url")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source field: lms_setup.lms_url")
public static final SqlColumn lmsUrl = lmsSetupRecord.lmsUrl;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.340+01:00", comments="Source field: lms_setup.lms_clientname")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source field: lms_setup.lms_clientname")
public static final SqlColumn lmsClientname = lmsSetupRecord.lmsClientname;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.340+01:00", comments="Source field: lms_setup.lms_clientsecret")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source field: lms_setup.lms_clientsecret")
public static final SqlColumn lmsClientsecret = lmsSetupRecord.lmsClientsecret;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source field: lms_setup.lms_rest_api_token")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source field: lms_setup.lms_rest_api_token")
public static final SqlColumn lmsRestApiToken = lmsSetupRecord.lmsRestApiToken;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source field: lms_setup.lms_proxy_auth_type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source field: lms_setup.lms_proxy_auth_type")
public static final SqlColumn lmsProxyAuthType = lmsSetupRecord.lmsProxyAuthType;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source field: lms_setup.lms_proxy_auth_username")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source field: lms_setup.lms_proxy_auth_username")
public static final SqlColumn lmsProxyAuthUsername = lmsSetupRecord.lmsProxyAuthUsername;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source field: lms_setup.lms_proxy_auth_secret")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source field: lms_setup.lms_proxy_auth_secret")
public static final SqlColumn lmsProxyAuthSecret = lmsSetupRecord.lmsProxyAuthSecret;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source field: lms_setup.active")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source field: lms_setup.active")
public static final SqlColumn active = lmsSetupRecord.active;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.340+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.545+01:00", comments="Source Table: lms_setup")
public static final class LmsSetupRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/LmsSetupRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/LmsSetupRecordMapper.java
index e22a2e66..0b5edd20 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/LmsSetupRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/LmsSetupRecordMapper.java
@@ -32,20 +32,20 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface LmsSetupRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source Table: lms_setup")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source Table: lms_setup")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source Table: lms_setup")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source Table: lms_setup")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -63,7 +63,7 @@ public interface LmsSetupRecordMapper {
})
LmsSetupRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source Table: lms_setup")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -81,22 +81,22 @@ public interface LmsSetupRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source Table: lms_setup")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source Table: lms_setup")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(lmsSetupRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source Table: lms_setup")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, lmsSetupRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.341+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.546+01:00", comments="Source Table: lms_setup")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, lmsSetupRecord)
.where(id, isEqualTo(id_))
@@ -104,7 +104,7 @@ public interface LmsSetupRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.342+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.547+01:00", comments="Source Table: lms_setup")
default int insert(LmsSetupRecord record) {
return insert(SqlBuilder.insert(record)
.into(lmsSetupRecord)
@@ -123,7 +123,7 @@ public interface LmsSetupRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.342+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.547+01:00", comments="Source Table: lms_setup")
default int insertSelective(LmsSetupRecord record) {
return insert(SqlBuilder.insert(record)
.into(lmsSetupRecord)
@@ -142,19 +142,19 @@ public interface LmsSetupRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.342+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.547+01:00", comments="Source Table: lms_setup")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, institutionId, name, lmsType, lmsUrl, lmsClientname, lmsClientsecret, lmsRestApiToken, lmsProxyAuthType, lmsProxyAuthUsername, lmsProxyAuthSecret, active)
.from(lmsSetupRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.342+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.547+01:00", comments="Source Table: lms_setup")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, institutionId, name, lmsType, lmsUrl, lmsClientname, lmsClientsecret, lmsRestApiToken, lmsProxyAuthType, lmsProxyAuthUsername, lmsProxyAuthSecret, active)
.from(lmsSetupRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.342+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.547+01:00", comments="Source Table: lms_setup")
default LmsSetupRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, institutionId, name, lmsType, lmsUrl, lmsClientname, lmsClientsecret, lmsRestApiToken, lmsProxyAuthType, lmsProxyAuthUsername, lmsProxyAuthSecret, active)
.from(lmsSetupRecord)
@@ -163,7 +163,7 @@ public interface LmsSetupRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.342+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.547+01:00", comments="Source Table: lms_setup")
default UpdateDSL> updateByExample(LmsSetupRecord record) {
return UpdateDSL.updateWithMapper(this::update, lmsSetupRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -179,7 +179,7 @@ public interface LmsSetupRecordMapper {
.set(active).equalTo(record::getActive);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.342+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.547+01:00", comments="Source Table: lms_setup")
default UpdateDSL> updateByExampleSelective(LmsSetupRecord record) {
return UpdateDSL.updateWithMapper(this::update, lmsSetupRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
@@ -195,7 +195,7 @@ public interface LmsSetupRecordMapper {
.set(active).equalToWhenPresent(record::getActive);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.342+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.547+01:00", comments="Source Table: lms_setup")
default int updateByPrimaryKey(LmsSetupRecord record) {
return UpdateDSL.updateWithMapper(this::update, lmsSetupRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -214,7 +214,7 @@ public interface LmsSetupRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.342+01:00", comments="Source Table: lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.547+01:00", comments="Source Table: lms_setup")
default int updateByPrimaryKeySelective(LmsSetupRecord record) {
return UpdateDSL.updateWithMapper(this::update, lmsSetupRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/OrientationRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/OrientationRecordDynamicSqlSupport.java
index d260d9fe..a4616b64 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/OrientationRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/OrientationRecordDynamicSqlSupport.java
@@ -6,40 +6,40 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class OrientationRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.268+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.457+01:00", comments="Source Table: orientation")
public static final OrientationRecord orientationRecord = new OrientationRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.269+01:00", comments="Source field: orientation.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.458+01:00", comments="Source field: orientation.id")
public static final SqlColumn id = orientationRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.269+01:00", comments="Source field: orientation.config_attribute_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.458+01:00", comments="Source field: orientation.config_attribute_id")
public static final SqlColumn configAttributeId = orientationRecord.configAttributeId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.270+01:00", comments="Source field: orientation.template_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.459+01:00", comments="Source field: orientation.template_id")
public static final SqlColumn templateId = orientationRecord.templateId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.271+01:00", comments="Source field: orientation.view_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.459+01:00", comments="Source field: orientation.view_id")
public static final SqlColumn viewId = orientationRecord.viewId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.271+01:00", comments="Source field: orientation.group_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.460+01:00", comments="Source field: orientation.group_id")
public static final SqlColumn groupId = orientationRecord.groupId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.271+01:00", comments="Source field: orientation.x_position")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.460+01:00", comments="Source field: orientation.x_position")
public static final SqlColumn xPosition = orientationRecord.xPosition;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.272+01:00", comments="Source field: orientation.y_position")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.462+01:00", comments="Source field: orientation.y_position")
public static final SqlColumn yPosition = orientationRecord.yPosition;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.272+01:00", comments="Source field: orientation.width")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.463+01:00", comments="Source field: orientation.width")
public static final SqlColumn width = orientationRecord.width;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.272+01:00", comments="Source field: orientation.height")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.463+01:00", comments="Source field: orientation.height")
public static final SqlColumn height = orientationRecord.height;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.274+01:00", comments="Source field: orientation.title")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.464+01:00", comments="Source field: orientation.title")
public static final SqlColumn title = orientationRecord.title;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.268+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.458+01:00", comments="Source Table: orientation")
public static final class OrientationRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/OrientationRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/OrientationRecordMapper.java
index c6383ef7..edee2a60 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/OrientationRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/OrientationRecordMapper.java
@@ -32,20 +32,20 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface OrientationRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.274+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.464+01:00", comments="Source Table: orientation")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.274+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.464+01:00", comments="Source Table: orientation")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.274+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.464+01:00", comments="Source Table: orientation")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.274+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.465+01:00", comments="Source Table: orientation")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -61,7 +61,7 @@ public interface OrientationRecordMapper {
})
OrientationRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.274+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.465+01:00", comments="Source Table: orientation")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -77,22 +77,22 @@ public interface OrientationRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.275+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.465+01:00", comments="Source Table: orientation")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.275+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.465+01:00", comments="Source Table: orientation")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(orientationRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.275+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.465+01:00", comments="Source Table: orientation")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, orientationRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.275+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.465+01:00", comments="Source Table: orientation")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, orientationRecord)
.where(id, isEqualTo(id_))
@@ -100,7 +100,7 @@ public interface OrientationRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.275+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.466+01:00", comments="Source Table: orientation")
default int insert(OrientationRecord record) {
return insert(SqlBuilder.insert(record)
.into(orientationRecord)
@@ -117,7 +117,7 @@ public interface OrientationRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.276+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.466+01:00", comments="Source Table: orientation")
default int insertSelective(OrientationRecord record) {
return insert(SqlBuilder.insert(record)
.into(orientationRecord)
@@ -134,19 +134,19 @@ public interface OrientationRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.277+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.467+01:00", comments="Source Table: orientation")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, configAttributeId, templateId, viewId, groupId, xPosition, yPosition, width, height, title)
.from(orientationRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.278+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.467+01:00", comments="Source Table: orientation")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, configAttributeId, templateId, viewId, groupId, xPosition, yPosition, width, height, title)
.from(orientationRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.278+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.467+01:00", comments="Source Table: orientation")
default OrientationRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, configAttributeId, templateId, viewId, groupId, xPosition, yPosition, width, height, title)
.from(orientationRecord)
@@ -155,7 +155,7 @@ public interface OrientationRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.278+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.467+01:00", comments="Source Table: orientation")
default UpdateDSL> updateByExample(OrientationRecord record) {
return UpdateDSL.updateWithMapper(this::update, orientationRecord)
.set(configAttributeId).equalTo(record::getConfigAttributeId)
@@ -169,7 +169,7 @@ public interface OrientationRecordMapper {
.set(title).equalTo(record::getTitle);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.278+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.467+01:00", comments="Source Table: orientation")
default UpdateDSL> updateByExampleSelective(OrientationRecord record) {
return UpdateDSL.updateWithMapper(this::update, orientationRecord)
.set(configAttributeId).equalToWhenPresent(record::getConfigAttributeId)
@@ -183,7 +183,7 @@ public interface OrientationRecordMapper {
.set(title).equalToWhenPresent(record::getTitle);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.278+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.467+01:00", comments="Source Table: orientation")
default int updateByPrimaryKey(OrientationRecord record) {
return UpdateDSL.updateWithMapper(this::update, orientationRecord)
.set(configAttributeId).equalTo(record::getConfigAttributeId)
@@ -200,7 +200,7 @@ public interface OrientationRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.278+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.468+01:00", comments="Source Table: orientation")
default int updateByPrimaryKeySelective(OrientationRecord record) {
return UpdateDSL.updateWithMapper(this::update, orientationRecord)
.set(configAttributeId).equalToWhenPresent(record::getConfigAttributeId)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/RoleRecordDynamicSqlSupport.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/RoleRecordDynamicSqlSupport.java
index 0b651bc2..f5004949 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/RoleRecordDynamicSqlSupport.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/RoleRecordDynamicSqlSupport.java
@@ -6,19 +6,19 @@ import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class RoleRecordDynamicSqlSupport {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.349+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
public static final RoleRecord roleRecord = new RoleRecord();
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.349+01:00", comments="Source field: user_role.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source field: user_role.id")
public static final SqlColumn id = roleRecord.id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.349+01:00", comments="Source field: user_role.user_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source field: user_role.user_id")
public static final SqlColumn userId = roleRecord.userId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.349+01:00", comments="Source field: user_role.role_name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source field: user_role.role_name")
public static final SqlColumn roleName = roleRecord.roleName;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.349+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
public static final class RoleRecord extends SqlTable {
public final SqlColumn id = column("id", JDBCType.BIGINT);
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/RoleRecordMapper.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/RoleRecordMapper.java
index 70c8e0a0..d61d2650 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/RoleRecordMapper.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/mapper/RoleRecordMapper.java
@@ -32,20 +32,20 @@ import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
@Mapper
public interface RoleRecordMapper {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider insertStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -54,7 +54,7 @@ public interface RoleRecordMapper {
})
RoleRecord selectOne(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
@@ -63,22 +63,22 @@ public interface RoleRecordMapper {
})
List selectMany(SelectStatementProvider selectStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
default QueryExpressionDSL> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(roleRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
default DeleteDSL> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, roleRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, roleRecord)
.where(id, isEqualTo(id_))
@@ -86,7 +86,7 @@ public interface RoleRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
default int insert(RoleRecord record) {
return insert(SqlBuilder.insert(record)
.into(roleRecord)
@@ -96,7 +96,7 @@ public interface RoleRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
default int insertSelective(RoleRecord record) {
return insert(SqlBuilder.insert(record)
.into(roleRecord)
@@ -106,19 +106,19 @@ public interface RoleRecordMapper {
.render(RenderingStrategy.MYBATIS3));
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
default QueryExpressionDSL>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, userId, roleName)
.from(roleRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
default QueryExpressionDSL>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, userId, roleName)
.from(roleRecord);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
default RoleRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, userId, roleName)
.from(roleRecord)
@@ -127,21 +127,21 @@ public interface RoleRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
default UpdateDSL> updateByExample(RoleRecord record) {
return UpdateDSL.updateWithMapper(this::update, roleRecord)
.set(userId).equalTo(record::getUserId)
.set(roleName).equalTo(record::getRoleName);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-28T13:38:46.350+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2019-10-31T08:44:00.553+01:00", comments="Source Table: user_role")
default UpdateDSL