> updateByExampleSelective(UserRecord record) {
return UpdateDSL.updateWithMapper(this::update, userRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
@@ -191,7 +191,7 @@ public interface UserRecordMapper {
.set(timezone).equalToWhenPresent(record::getTimezone);
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.710+01:00", comments="Source Table: user")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.479+01:00", comments="Source Table: user")
default int updateByPrimaryKey(UserRecord record) {
return UpdateDSL.updateWithMapper(this::update, userRecord)
.set(institutionId).equalTo(record::getInstitutionId)
@@ -209,7 +209,7 @@ public interface UserRecordMapper {
.execute();
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.711+01:00", comments="Source Table: user")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.479+01:00", comments="Source Table: user")
default int updateByPrimaryKeySelective(UserRecord record) {
return UpdateDSL.updateWithMapper(this::update, userRecord)
.set(institutionId).equalToWhenPresent(record::getInstitutionId)
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ClientConnectionRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ClientConnectionRecord.java
similarity index 81%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ClientConnectionRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ClientConnectionRecord.java
index 40a6b8f6..11dfa102 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ClientConnectionRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ClientConnectionRecord.java
@@ -1,33 +1,33 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
public class ClientConnectionRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.685+01:00", comments="Source field: client_connection.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.427+01:00", comments="Source field: client_connection.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.685+01:00", comments="Source field: client_connection.exam_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.427+01:00", comments="Source field: client_connection.exam_id")
private Long examId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.685+01:00", comments="Source field: client_connection.status")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.428+01:00", comments="Source field: client_connection.status")
private String status;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.685+01:00", comments="Source field: client_connection.connection_token")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.428+01:00", comments="Source field: client_connection.connection_token")
private String connectionToken;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.686+01:00", comments="Source field: client_connection.user_name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.430+01:00", comments="Source field: client_connection.user_name")
private String userName;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.686+01:00", comments="Source field: client_connection.vdi")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.430+01:00", comments="Source field: client_connection.vdi")
private Boolean vdi;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.686+01:00", comments="Source field: client_connection.client_address")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.431+01:00", comments="Source field: client_connection.client_address")
private String clientAddress;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.686+01:00", comments="Source field: client_connection.virtual_client_address")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.431+01:00", comments="Source field: client_connection.virtual_client_address")
private String virtualClientAddress;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.684+01:00", comments="Source Table: client_connection")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.427+01:00", comments="Source Table: client_connection")
public ClientConnectionRecord(Long id, Long examId, String status, String connectionToken, String userName, Boolean vdi, String clientAddress, String virtualClientAddress) {
this.id = id;
this.examId = examId;
@@ -39,42 +39,42 @@ public class ClientConnectionRecord {
this.virtualClientAddress = virtualClientAddress;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.685+01:00", comments="Source field: client_connection.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.427+01:00", comments="Source field: client_connection.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.685+01:00", comments="Source field: client_connection.exam_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.428+01:00", comments="Source field: client_connection.exam_id")
public Long getExamId() {
return examId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.685+01:00", comments="Source field: client_connection.status")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.428+01:00", comments="Source field: client_connection.status")
public String getStatus() {
return status;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.685+01:00", comments="Source field: client_connection.connection_token")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.428+01:00", comments="Source field: client_connection.connection_token")
public String getConnectionToken() {
return connectionToken;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.686+01:00", comments="Source field: client_connection.user_name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.430+01:00", comments="Source field: client_connection.user_name")
public String getUserName() {
return userName;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.686+01:00", comments="Source field: client_connection.vdi")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.431+01:00", comments="Source field: client_connection.vdi")
public Boolean getVdi() {
return vdi;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.686+01:00", comments="Source field: client_connection.client_address")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.431+01:00", comments="Source field: client_connection.client_address")
public String getClientAddress() {
return clientAddress;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.686+01:00", comments="Source field: client_connection.virtual_client_address")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.431+01:00", comments="Source field: client_connection.virtual_client_address")
public String getVirtualClientAddress() {
return virtualClientAddress;
}
@@ -83,7 +83,7 @@ public class ClientConnectionRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table client_connection
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -107,7 +107,7 @@ public class ClientConnectionRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table client_connection
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -135,7 +135,7 @@ public class ClientConnectionRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table client_connection
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ClientEventRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ClientEventRecord.java
similarity index 80%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ClientEventRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ClientEventRecord.java
index a841dd42..a53937ea 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ClientEventRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ClientEventRecord.java
@@ -1,31 +1,31 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import java.math.BigDecimal;
import javax.annotation.Generated;
public class ClientEventRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.690+01:00", comments="Source field: client_event.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.435+01:00", comments="Source field: client_event.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.690+01:00", comments="Source field: client_event.connection_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.435+01:00", comments="Source field: client_event.connection_id")
private Long connectionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.690+01:00", comments="Source field: client_event.user_identifier")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.435+01:00", comments="Source field: client_event.user_identifier")
private String userIdentifier;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.690+01:00", comments="Source field: client_event.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.436+01:00", comments="Source field: client_event.type")
private Integer type;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.691+01:00", comments="Source field: client_event.timestamp")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.436+01:00", comments="Source field: client_event.timestamp")
private Long timestamp;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.691+01:00", comments="Source field: client_event.numeric_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.436+01:00", comments="Source field: client_event.numeric_value")
private BigDecimal numericValue;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.691+01:00", comments="Source field: client_event.text")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.436+01:00", comments="Source field: client_event.text")
private String text;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.690+01:00", comments="Source Table: client_event")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.435+01:00", comments="Source Table: client_event")
public ClientEventRecord(Long id, Long connectionId, String userIdentifier, Integer type, Long timestamp, BigDecimal numericValue, String text) {
this.id = id;
this.connectionId = connectionId;
@@ -36,37 +36,37 @@ public class ClientEventRecord {
this.text = text;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.690+01:00", comments="Source field: client_event.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.435+01:00", comments="Source field: client_event.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.690+01:00", comments="Source field: client_event.connection_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.435+01:00", comments="Source field: client_event.connection_id")
public Long getConnectionId() {
return connectionId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.690+01:00", comments="Source field: client_event.user_identifier")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.436+01:00", comments="Source field: client_event.user_identifier")
public String getUserIdentifier() {
return userIdentifier;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.691+01:00", comments="Source field: client_event.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.436+01:00", comments="Source field: client_event.type")
public Integer getType() {
return type;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.691+01:00", comments="Source field: client_event.timestamp")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.436+01:00", comments="Source field: client_event.timestamp")
public Long getTimestamp() {
return timestamp;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.691+01:00", comments="Source field: client_event.numeric_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.436+01:00", comments="Source field: client_event.numeric_value")
public BigDecimal getNumericValue() {
return numericValue;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.691+01:00", comments="Source field: client_event.text")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.436+01:00", comments="Source field: client_event.text")
public String getText() {
return text;
}
@@ -75,7 +75,7 @@ public class ClientEventRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table client_event
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -98,7 +98,7 @@ public class ClientEventRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table client_event
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -125,7 +125,7 @@ public class ClientEventRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table client_event
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ConfigurationAttributeRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ConfigurationAttributeRecord.java
similarity index 81%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ConfigurationAttributeRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ConfigurationAttributeRecord.java
index 1256cf94..c9abbeb9 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ConfigurationAttributeRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ConfigurationAttributeRecord.java
@@ -1,33 +1,33 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
public class ConfigurationAttributeRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.513+01:00", comments="Source field: configuration_attribute.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.131+01:00", comments="Source field: configuration_attribute.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.514+01:00", comments="Source field: configuration_attribute.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.131+01:00", comments="Source field: configuration_attribute.name")
private String name;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.514+01:00", comments="Source field: configuration_attribute.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.132+01:00", comments="Source field: configuration_attribute.type")
private String type;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.514+01:00", comments="Source field: configuration_attribute.parent_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.132+01:00", comments="Source field: configuration_attribute.parent_id")
private Long parentId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.515+01:00", comments="Source field: configuration_attribute.resources")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.132+01:00", comments="Source field: configuration_attribute.resources")
private String resources;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.515+01:00", comments="Source field: configuration_attribute.validator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.132+01:00", comments="Source field: configuration_attribute.validator")
private String validator;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.515+01:00", comments="Source field: configuration_attribute.dependencies")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.132+01:00", comments="Source field: configuration_attribute.dependencies")
private String dependencies;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.515+01:00", comments="Source field: configuration_attribute.default_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.133+01:00", comments="Source field: configuration_attribute.default_value")
private String defaultValue;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.503+01:00", comments="Source Table: configuration_attribute")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.112+01:00", comments="Source Table: configuration_attribute")
public ConfigurationAttributeRecord(Long id, String name, String type, Long parentId, String resources, String validator, String dependencies, String defaultValue) {
this.id = id;
this.name = name;
@@ -39,42 +39,42 @@ public class ConfigurationAttributeRecord {
this.defaultValue = defaultValue;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.514+01:00", comments="Source field: configuration_attribute.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.131+01:00", comments="Source field: configuration_attribute.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.514+01:00", comments="Source field: configuration_attribute.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.132+01:00", comments="Source field: configuration_attribute.name")
public String getName() {
return name;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.514+01:00", comments="Source field: configuration_attribute.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.132+01:00", comments="Source field: configuration_attribute.type")
public String getType() {
return type;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.515+01:00", comments="Source field: configuration_attribute.parent_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.132+01:00", comments="Source field: configuration_attribute.parent_id")
public Long getParentId() {
return parentId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.515+01:00", comments="Source field: configuration_attribute.resources")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.132+01:00", comments="Source field: configuration_attribute.resources")
public String getResources() {
return resources;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.515+01:00", comments="Source field: configuration_attribute.validator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.132+01:00", comments="Source field: configuration_attribute.validator")
public String getValidator() {
return validator;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.515+01:00", comments="Source field: configuration_attribute.dependencies")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.132+01:00", comments="Source field: configuration_attribute.dependencies")
public String getDependencies() {
return dependencies;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.516+01:00", comments="Source field: configuration_attribute.default_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.133+01:00", comments="Source field: configuration_attribute.default_value")
public String getDefaultValue() {
return defaultValue;
}
@@ -83,7 +83,7 @@ public class ConfigurationAttributeRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table configuration_attribute
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -107,7 +107,7 @@ public class ConfigurationAttributeRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table configuration_attribute
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -135,7 +135,7 @@ public class ConfigurationAttributeRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table configuration_attribute
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ConfigurationNodeRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ConfigurationNodeRecord.java
similarity index 80%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ConfigurationNodeRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ConfigurationNodeRecord.java
index f5f90ae4..ddfafaf1 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ConfigurationNodeRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ConfigurationNodeRecord.java
@@ -1,30 +1,30 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
public class ConfigurationNodeRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.671+01:00", comments="Source field: configuration_node.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.401+01:00", comments="Source field: configuration_node.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.671+01:00", comments="Source field: configuration_node.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.401+01:00", comments="Source field: configuration_node.institution_id")
private Long institutionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.672+01:00", comments="Source field: configuration_node.owner")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.402+01:00", comments="Source field: configuration_node.owner")
private String owner;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.672+01:00", comments="Source field: configuration_node.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.402+01:00", comments="Source field: configuration_node.name")
private String name;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.672+01:00", comments="Source field: configuration_node.description")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.402+01:00", comments="Source field: configuration_node.description")
private String description;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.672+01:00", comments="Source field: configuration_node.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.402+01:00", comments="Source field: configuration_node.type")
private String type;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.672+01:00", comments="Source field: configuration_node.template")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.403+01:00", comments="Source field: configuration_node.template")
private String template;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.671+01:00", comments="Source Table: configuration_node")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.401+01:00", comments="Source Table: configuration_node")
public ConfigurationNodeRecord(Long id, Long institutionId, String owner, String name, String description, String type, String template) {
this.id = id;
this.institutionId = institutionId;
@@ -35,37 +35,37 @@ public class ConfigurationNodeRecord {
this.template = template;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.671+01:00", comments="Source field: configuration_node.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.401+01:00", comments="Source field: configuration_node.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.671+01:00", comments="Source field: configuration_node.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.401+01:00", comments="Source field: configuration_node.institution_id")
public Long getInstitutionId() {
return institutionId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.672+01:00", comments="Source field: configuration_node.owner")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.402+01:00", comments="Source field: configuration_node.owner")
public String getOwner() {
return owner;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.672+01:00", comments="Source field: configuration_node.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.402+01:00", comments="Source field: configuration_node.name")
public String getName() {
return name;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.672+01:00", comments="Source field: configuration_node.description")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.402+01:00", comments="Source field: configuration_node.description")
public String getDescription() {
return description;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.672+01:00", comments="Source field: configuration_node.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.402+01:00", comments="Source field: configuration_node.type")
public String getType() {
return type;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.672+01:00", comments="Source field: configuration_node.template")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.403+01:00", comments="Source field: configuration_node.template")
public String getTemplate() {
return template;
}
@@ -74,7 +74,7 @@ public class ConfigurationNodeRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table configuration_node
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -97,7 +97,7 @@ public class ConfigurationNodeRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table configuration_node
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -124,7 +124,7 @@ public class ConfigurationNodeRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table configuration_node
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ConfigurationRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ConfigurationRecord.java
similarity index 81%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ConfigurationRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ConfigurationRecord.java
index 54a6a447..880a7d25 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ConfigurationRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ConfigurationRecord.java
@@ -1,25 +1,25 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
import org.joda.time.DateTime;
public class ConfigurationRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.667+01:00", comments="Source field: configuration.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.393+01:00", comments="Source field: configuration.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.667+01:00", comments="Source field: configuration.configuration_node_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.393+01:00", comments="Source field: configuration.configuration_node_id")
private Long configurationNodeId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.667+01:00", comments="Source field: configuration.version")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.393+01:00", comments="Source field: configuration.version")
private String version;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.667+01:00", comments="Source field: configuration.version_date")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.393+01:00", comments="Source field: configuration.version_date")
private DateTime versionDate;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.667+01:00", comments="Source field: configuration.followup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.394+01:00", comments="Source field: configuration.followup")
private Integer followup;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.667+01:00", comments="Source Table: configuration")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.393+01:00", comments="Source Table: configuration")
public ConfigurationRecord(Long id, Long configurationNodeId, String version, DateTime versionDate, Integer followup) {
this.id = id;
this.configurationNodeId = configurationNodeId;
@@ -28,27 +28,27 @@ public class ConfigurationRecord {
this.followup = followup;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.667+01:00", comments="Source field: configuration.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.393+01:00", comments="Source field: configuration.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.667+01:00", comments="Source field: configuration.configuration_node_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.393+01:00", comments="Source field: configuration.configuration_node_id")
public Long getConfigurationNodeId() {
return configurationNodeId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.667+01:00", comments="Source field: configuration.version")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.393+01:00", comments="Source field: configuration.version")
public String getVersion() {
return version;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.667+01:00", comments="Source field: configuration.version_date")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.393+01:00", comments="Source field: configuration.version_date")
public DateTime getVersionDate() {
return versionDate;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.668+01:00", comments="Source field: configuration.followup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.394+01:00", comments="Source field: configuration.followup")
public Integer getFollowup() {
return followup;
}
@@ -57,7 +57,7 @@ public class ConfigurationRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table configuration
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -78,7 +78,7 @@ public class ConfigurationRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table configuration
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -103,7 +103,7 @@ public class ConfigurationRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table configuration
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ConfigurationValueRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ConfigurationValueRecord.java
similarity index 81%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ConfigurationValueRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ConfigurationValueRecord.java
index 5af89810..a64f5587 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ConfigurationValueRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ConfigurationValueRecord.java
@@ -1,27 +1,27 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
public class ConfigurationValueRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.652+01:00", comments="Source field: configuration_value.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.368+01:00", comments="Source field: configuration_value.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.653+01:00", comments="Source field: configuration_value.configuration_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.368+01:00", comments="Source field: configuration_value.configuration_id")
private Long configurationId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.653+01:00", comments="Source field: configuration_value.configuration_attribute_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.368+01:00", comments="Source field: configuration_value.configuration_attribute_id")
private Long configurationAttributeId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.653+01:00", comments="Source field: configuration_value.list_index")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.369+01:00", comments="Source field: configuration_value.list_index")
private Integer listIndex;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.653+01:00", comments="Source field: configuration_value.value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.369+01:00", comments="Source field: configuration_value.value")
private String value;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.653+01:00", comments="Source field: configuration_value.text")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.369+01:00", comments="Source field: configuration_value.text")
private String text;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.652+01:00", comments="Source Table: configuration_value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.368+01:00", comments="Source Table: configuration_value")
public ConfigurationValueRecord(Long id, Long configurationId, Long configurationAttributeId, Integer listIndex, String value, String text) {
this.id = id;
this.configurationId = configurationId;
@@ -31,32 +31,32 @@ public class ConfigurationValueRecord {
this.text = text;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.653+01:00", comments="Source field: configuration_value.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.368+01:00", comments="Source field: configuration_value.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.653+01:00", comments="Source field: configuration_value.configuration_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.368+01:00", comments="Source field: configuration_value.configuration_id")
public Long getConfigurationId() {
return configurationId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.653+01:00", comments="Source field: configuration_value.configuration_attribute_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.369+01:00", comments="Source field: configuration_value.configuration_attribute_id")
public Long getConfigurationAttributeId() {
return configurationAttributeId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.653+01:00", comments="Source field: configuration_value.list_index")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.369+01:00", comments="Source field: configuration_value.list_index")
public Integer getListIndex() {
return listIndex;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.653+01:00", comments="Source field: configuration_value.value")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.369+01:00", comments="Source field: configuration_value.value")
public String getValue() {
return value;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.653+01:00", comments="Source field: configuration_value.text")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.369+01:00", comments="Source field: configuration_value.text")
public String getText() {
return text;
}
@@ -65,7 +65,7 @@ public class ConfigurationValueRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table configuration_value
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -87,7 +87,7 @@ public class ConfigurationValueRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table configuration_value
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -113,7 +113,7 @@ public class ConfigurationValueRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table configuration_value
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ExamConfigurationMapRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ExamConfigurationMapRecord.java
similarity index 81%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ExamConfigurationMapRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ExamConfigurationMapRecord.java
index d53df64e..b22fad49 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ExamConfigurationMapRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ExamConfigurationMapRecord.java
@@ -1,21 +1,21 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
public class ExamConfigurationMapRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.676+01:00", comments="Source field: exam_configuration_map.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.410+01:00", comments="Source field: exam_configuration_map.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.676+01:00", comments="Source field: exam_configuration_map.exam_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.410+01:00", comments="Source field: exam_configuration_map.exam_id")
private Long examId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.676+01:00", comments="Source field: exam_configuration_map.configuration_node_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.411+01:00", comments="Source field: exam_configuration_map.configuration_node_id")
private Long configurationNodeId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.676+01:00", comments="Source field: exam_configuration_map.user_names")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.411+01:00", comments="Source field: exam_configuration_map.user_names")
private String userNames;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.676+01:00", comments="Source Table: exam_configuration_map")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.410+01:00", comments="Source Table: exam_configuration_map")
public ExamConfigurationMapRecord(Long id, Long examId, Long configurationNodeId, String userNames) {
this.id = id;
this.examId = examId;
@@ -23,22 +23,22 @@ public class ExamConfigurationMapRecord {
this.userNames = userNames;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.676+01:00", comments="Source field: exam_configuration_map.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.410+01:00", comments="Source field: exam_configuration_map.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.676+01:00", comments="Source field: exam_configuration_map.exam_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.411+01:00", comments="Source field: exam_configuration_map.exam_id")
public Long getExamId() {
return examId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.676+01:00", comments="Source field: exam_configuration_map.configuration_node_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.411+01:00", comments="Source field: exam_configuration_map.configuration_node_id")
public Long getConfigurationNodeId() {
return configurationNodeId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.676+01:00", comments="Source field: exam_configuration_map.user_names")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.411+01:00", comments="Source field: exam_configuration_map.user_names")
public String getUserNames() {
return userNames;
}
@@ -47,7 +47,7 @@ public class ExamConfigurationMapRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table exam_configuration_map
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -67,7 +67,7 @@ public class ExamConfigurationMapRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table exam_configuration_map
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -91,7 +91,7 @@ public class ExamConfigurationMapRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table exam_configuration_map
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ExamRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ExamRecord.java
similarity index 79%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ExamRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ExamRecord.java
index 0d6aad93..f1b25e4c 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/ExamRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/ExamRecord.java
@@ -1,27 +1,27 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
public class ExamRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.680+01:00", comments="Source field: exam.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.416+01:00", comments="Source field: exam.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.680+01:00", comments="Source field: exam.lms_setup_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.417+01:00", comments="Source field: exam.lms_setup_id")
private Long lmsSetupId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.680+01:00", comments="Source field: exam.external_uuid")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.417+01:00", comments="Source field: exam.external_uuid")
private String externalUuid;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.680+01:00", comments="Source field: exam.owner")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.417+01:00", comments="Source field: exam.owner")
private String owner;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.681+01:00", comments="Source field: exam.supporter")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.418+01:00", comments="Source field: exam.supporter")
private String supporter;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.681+01:00", comments="Source field: exam.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.418+01:00", comments="Source field: exam.type")
private String type;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.680+01:00", comments="Source Table: exam")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.416+01:00", comments="Source Table: exam")
public ExamRecord(Long id, Long lmsSetupId, String externalUuid, String owner, String supporter, String type) {
this.id = id;
this.lmsSetupId = lmsSetupId;
@@ -31,32 +31,32 @@ public class ExamRecord {
this.type = type;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.680+01:00", comments="Source field: exam.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.417+01:00", comments="Source field: exam.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.680+01:00", comments="Source field: exam.lms_setup_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.417+01:00", comments="Source field: exam.lms_setup_id")
public Long getLmsSetupId() {
return lmsSetupId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.680+01:00", comments="Source field: exam.external_uuid")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.417+01:00", comments="Source field: exam.external_uuid")
public String getExternalUuid() {
return externalUuid;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.680+01:00", comments="Source field: exam.owner")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.417+01:00", comments="Source field: exam.owner")
public String getOwner() {
return owner;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.681+01:00", comments="Source field: exam.supporter")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.418+01:00", comments="Source field: exam.supporter")
public String getSupporter() {
return supporter;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.681+01:00", comments="Source field: exam.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.418+01:00", comments="Source field: exam.type")
public String getType() {
return type;
}
@@ -65,7 +65,7 @@ public class ExamRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table exam
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -87,7 +87,7 @@ public class ExamRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table exam
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -113,7 +113,7 @@ public class ExamRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table exam
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/IndicatorRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/IndicatorRecord.java
similarity index 79%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/IndicatorRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/IndicatorRecord.java
index 3db36bec..d0adf434 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/IndicatorRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/IndicatorRecord.java
@@ -1,24 +1,24 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
public class IndicatorRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.694+01:00", comments="Source field: indicator.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.442+01:00", comments="Source field: indicator.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.694+01:00", comments="Source field: indicator.exam_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.443+01:00", comments="Source field: indicator.exam_id")
private Long examId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.694+01:00", comments="Source field: indicator.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.443+01:00", comments="Source field: indicator.type")
private String type;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.694+01:00", comments="Source field: indicator.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.443+01:00", comments="Source field: indicator.name")
private String name;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.694+01:00", comments="Source field: indicator.color")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.443+01:00", comments="Source field: indicator.color")
private String color;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.694+01:00", comments="Source Table: indicator")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.442+01:00", comments="Source Table: indicator")
public IndicatorRecord(Long id, Long examId, String type, String name, String color) {
this.id = id;
this.examId = examId;
@@ -27,27 +27,27 @@ public class IndicatorRecord {
this.color = color;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.694+01:00", comments="Source field: indicator.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.442+01:00", comments="Source field: indicator.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.694+01:00", comments="Source field: indicator.exam_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.443+01:00", comments="Source field: indicator.exam_id")
public Long getExamId() {
return examId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.694+01:00", comments="Source field: indicator.type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.443+01:00", comments="Source field: indicator.type")
public String getType() {
return type;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.694+01:00", comments="Source field: indicator.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.443+01:00", comments="Source field: indicator.name")
public String getName() {
return name;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.694+01:00", comments="Source field: indicator.color")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.443+01:00", comments="Source field: indicator.color")
public String getColor() {
return color;
}
@@ -56,7 +56,7 @@ public class IndicatorRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table indicator
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -77,7 +77,7 @@ public class IndicatorRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table indicator
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -102,7 +102,7 @@ public class IndicatorRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table indicator
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/InstitutionRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/InstitutionRecord.java
similarity index 79%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/InstitutionRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/InstitutionRecord.java
index b122b492..c702049f 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/InstitutionRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/InstitutionRecord.java
@@ -1,35 +1,35 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
public class InstitutionRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.697+01:00", comments="Source field: institution.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.448+01:00", comments="Source field: institution.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.697+01:00", comments="Source field: institution.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.448+01:00", comments="Source field: institution.name")
private String name;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.697+01:00", comments="Source field: institution.authtype")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.449+01:00", comments="Source field: institution.authtype")
private String authtype;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.697+01:00", comments="Source Table: institution")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.448+01:00", comments="Source Table: institution")
public InstitutionRecord(Long id, String name, String authtype) {
this.id = id;
this.name = name;
this.authtype = authtype;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.697+01:00", comments="Source field: institution.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.448+01:00", comments="Source field: institution.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.697+01:00", comments="Source field: institution.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.449+01:00", comments="Source field: institution.name")
public String getName() {
return name;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.698+01:00", comments="Source field: institution.authtype")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.449+01:00", comments="Source field: institution.authtype")
public String getAuthtype() {
return authtype;
}
@@ -38,7 +38,7 @@ public class InstitutionRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table institution
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -57,7 +57,7 @@ public class InstitutionRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table institution
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -80,7 +80,7 @@ public class InstitutionRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table institution
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/OrientationRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/OrientationRecord.java
similarity index 80%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/OrientationRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/OrientationRecord.java
index 51da8771..b96f54d9 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/OrientationRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/OrientationRecord.java
@@ -1,36 +1,36 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
public class OrientationRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.658+01:00", comments="Source field: orientation.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.385+01:00", comments="Source field: orientation.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.658+01:00", comments="Source field: orientation.config_attribute_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.385+01:00", comments="Source field: orientation.config_attribute_id")
private Long configAttributeId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.template")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.385+01:00", comments="Source field: orientation.template")
private String template;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.view")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.385+01:00", comments="Source field: orientation.view")
private String view;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.group")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.386+01:00", comments="Source field: orientation.group")
private String group;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.x_position")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.386+01:00", comments="Source field: orientation.x_position")
private Integer xPosition;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.y_position")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.386+01:00", comments="Source field: orientation.y_position")
private Integer yPosition;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.width")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.386+01:00", comments="Source field: orientation.width")
private Integer width;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.height")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.386+01:00", comments="Source field: orientation.height")
private Integer height;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.658+01:00", comments="Source Table: orientation")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.385+01:00", comments="Source Table: orientation")
public OrientationRecord(Long id, Long configAttributeId, String template, String view, String group, Integer xPosition, Integer yPosition, Integer width, Integer height) {
this.id = id;
this.configAttributeId = configAttributeId;
@@ -43,47 +43,47 @@ public class OrientationRecord {
this.height = height;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.658+01:00", comments="Source field: orientation.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.385+01:00", comments="Source field: orientation.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.658+01:00", comments="Source field: orientation.config_attribute_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.385+01:00", comments="Source field: orientation.config_attribute_id")
public Long getConfigAttributeId() {
return configAttributeId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.template")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.385+01:00", comments="Source field: orientation.template")
public String getTemplate() {
return template;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.view")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.386+01:00", comments="Source field: orientation.view")
public String getView() {
return view;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.group")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.386+01:00", comments="Source field: orientation.group")
public String getGroup() {
return group;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.x_position")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.386+01:00", comments="Source field: orientation.x_position")
public Integer getxPosition() {
return xPosition;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.y_position")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.386+01:00", comments="Source field: orientation.y_position")
public Integer getyPosition() {
return yPosition;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.width")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.386+01:00", comments="Source field: orientation.width")
public Integer getWidth() {
return width;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.659+01:00", comments="Source field: orientation.height")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.387+01:00", comments="Source field: orientation.height")
public Integer getHeight() {
return height;
}
@@ -92,7 +92,7 @@ public class OrientationRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table orientation
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -117,7 +117,7 @@ public class OrientationRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table orientation
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -146,7 +146,7 @@ public class OrientationRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table orientation
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/RoleRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/RoleRecord.java
similarity index 79%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/RoleRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/RoleRecord.java
index f8fd1d76..247476ed 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/RoleRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/RoleRecord.java
@@ -1,35 +1,35 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
public class RoleRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.711+01:00", comments="Source field: user_role.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.480+01:00", comments="Source field: user_role.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.711+01:00", comments="Source field: user_role.user_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.481+01:00", comments="Source field: user_role.user_id")
private Long userId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.711+01:00", comments="Source field: user_role.role_name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.481+01:00", comments="Source field: user_role.role_name")
private String roleName;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.711+01:00", comments="Source Table: user_role")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.480+01:00", comments="Source Table: user_role")
public RoleRecord(Long id, Long userId, String roleName) {
this.id = id;
this.userId = userId;
this.roleName = roleName;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.711+01:00", comments="Source field: user_role.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.481+01:00", comments="Source field: user_role.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.711+01:00", comments="Source field: user_role.user_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.481+01:00", comments="Source field: user_role.user_id")
public Long getUserId() {
return userId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.711+01:00", comments="Source field: user_role.role_name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.481+01:00", comments="Source field: user_role.role_name")
public String getRoleName() {
return roleName;
}
@@ -38,7 +38,7 @@ public class RoleRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_role
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -57,7 +57,7 @@ public class RoleRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_role
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -80,7 +80,7 @@ public class RoleRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user_role
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/SebLmsSetupRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/SebLmsSetupRecord.java
similarity index 81%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/SebLmsSetupRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/SebLmsSetupRecord.java
index 9a03fe2e..f2b50f7d 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/SebLmsSetupRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/SebLmsSetupRecord.java
@@ -1,39 +1,39 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
public class SebLmsSetupRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.700+01:00", comments="Source field: seb_lms_setup.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.460+01:00", comments="Source field: seb_lms_setup.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.700+01:00", comments="Source field: seb_lms_setup.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.460+01:00", comments="Source field: seb_lms_setup.institution_id")
private Long institutionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.700+01:00", comments="Source field: seb_lms_setup.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.461+01:00", comments="Source field: seb_lms_setup.name")
private String name;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.lms_type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.461+01:00", comments="Source field: seb_lms_setup.lms_type")
private String lmsType;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.lms_url")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.461+01:00", comments="Source field: seb_lms_setup.lms_url")
private String lmsUrl;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.lms_clientname")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.462+01:00", comments="Source field: seb_lms_setup.lms_clientname")
private String lmsClientname;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.lms_clientsecret")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.462+01:00", comments="Source field: seb_lms_setup.lms_clientsecret")
private String lmsClientsecret;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.lms_rest_api_token")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.462+01:00", comments="Source field: seb_lms_setup.lms_rest_api_token")
private String lmsRestApiToken;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.seb_clientname")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.462+01:00", comments="Source field: seb_lms_setup.seb_clientname")
private String sebClientname;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.seb_clientsecret")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.462+01:00", comments="Source field: seb_lms_setup.seb_clientsecret")
private String sebClientsecret;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.700+01:00", comments="Source Table: seb_lms_setup")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.460+01:00", comments="Source Table: seb_lms_setup")
public SebLmsSetupRecord(Long id, Long institutionId, String name, String lmsType, String lmsUrl, String lmsClientname, String lmsClientsecret, String lmsRestApiToken, String sebClientname, String sebClientsecret) {
this.id = id;
this.institutionId = institutionId;
@@ -47,52 +47,52 @@ public class SebLmsSetupRecord {
this.sebClientsecret = sebClientsecret;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.700+01:00", comments="Source field: seb_lms_setup.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.460+01:00", comments="Source field: seb_lms_setup.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.700+01:00", comments="Source field: seb_lms_setup.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.460+01:00", comments="Source field: seb_lms_setup.institution_id")
public Long getInstitutionId() {
return institutionId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.461+01:00", comments="Source field: seb_lms_setup.name")
public String getName() {
return name;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.lms_type")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.461+01:00", comments="Source field: seb_lms_setup.lms_type")
public String getLmsType() {
return lmsType;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.lms_url")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.461+01:00", comments="Source field: seb_lms_setup.lms_url")
public String getLmsUrl() {
return lmsUrl;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.lms_clientname")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.462+01:00", comments="Source field: seb_lms_setup.lms_clientname")
public String getLmsClientname() {
return lmsClientname;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.lms_clientsecret")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.462+01:00", comments="Source field: seb_lms_setup.lms_clientsecret")
public String getLmsClientsecret() {
return lmsClientsecret;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.lms_rest_api_token")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.462+01:00", comments="Source field: seb_lms_setup.lms_rest_api_token")
public String getLmsRestApiToken() {
return lmsRestApiToken;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.seb_clientname")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.462+01:00", comments="Source field: seb_lms_setup.seb_clientname")
public String getSebClientname() {
return sebClientname;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.701+01:00", comments="Source field: seb_lms_setup.seb_clientsecret")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.462+01:00", comments="Source field: seb_lms_setup.seb_clientsecret")
public String getSebClientsecret() {
return sebClientsecret;
}
@@ -101,7 +101,7 @@ public class SebLmsSetupRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table seb_lms_setup
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -127,7 +127,7 @@ public class SebLmsSetupRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table seb_lms_setup
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -157,7 +157,7 @@ public class SebLmsSetupRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table seb_lms_setup
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/UserRecord.java b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/UserRecord.java
similarity index 79%
rename from src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/UserRecord.java
rename to src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/UserRecord.java
index 9c5c9eab..07c15a4a 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/batis/model/UserRecord.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/datalayer/batis/model/UserRecord.java
@@ -1,43 +1,43 @@
-package ch.ethz.seb.sebserver.webservice.batis.model;
+package ch.ethz.seb.sebserver.webservice.datalayer.batis.model;
import javax.annotation.Generated;
import org.joda.time.DateTime;
public class UserRecord {
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.705+01:00", comments="Source field: user.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.470+01:00", comments="Source field: user.id")
private Long id;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.470+01:00", comments="Source field: user.institution_id")
private Long institutionId;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.uuid")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.470+01:00", comments="Source field: user.uuid")
private String uuid;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.470+01:00", comments="Source field: user.name")
private String name;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.user_name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.user_name")
private String userName;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.password")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.password")
private String password;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.email")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.email")
private String email;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.creation_date")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.creation_date")
private DateTime creationDate;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.active")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.active")
private Integer active;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.locale")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.locale")
private String locale;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.timezone")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.timezone")
private String timezone;
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.705+01:00", comments="Source Table: user")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.469+01:00", comments="Source Table: user")
public UserRecord(Long id, Long institutionId, String uuid, String name, String userName, String password, String email, DateTime creationDate, Integer active, String locale, String timezone) {
this.id = id;
this.institutionId = institutionId;
@@ -52,57 +52,57 @@ public class UserRecord {
this.timezone = timezone;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.705+01:00", comments="Source field: user.id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.470+01:00", comments="Source field: user.id")
public Long getId() {
return id;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.institution_id")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.470+01:00", comments="Source field: user.institution_id")
public Long getInstitutionId() {
return institutionId;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.uuid")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.470+01:00", comments="Source field: user.uuid")
public String getUuid() {
return uuid;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.name")
public String getName() {
return name;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.user_name")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.user_name")
public String getUserName() {
return userName;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.password")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.password")
public String getPassword() {
return password;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.email")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.email")
public String getEmail() {
return email;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.creation_date")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.creation_date")
public DateTime getCreationDate() {
return creationDate;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.active")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.active")
public Integer getActive() {
return active;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.locale")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.locale")
public String getLocale() {
return locale;
}
- @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-14T08:29:18.706+01:00", comments="Source field: user.timezone")
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2018-11-15T09:54:02.471+01:00", comments="Source field: user.timezone")
public String getTimezone() {
return timezone;
}
@@ -111,7 +111,7 @@ public class UserRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public String toString() {
@@ -138,7 +138,7 @@ public class UserRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public boolean equals(Object that) {
@@ -169,7 +169,7 @@ public class UserRecord {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table user
*
- * @mbg.generated Wed Nov 14 08:29:18 CET 2018
+ * @mbg.generated Thu Nov 15 09:54:02 CET 2018
*/
@Override
public int hashCode() {
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/ClientSessionWebSecurityConfig.java b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/ClientSessionWebSecurityConfig.java
new file mode 100644
index 00000000..6429bc29
--- /dev/null
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/ClientSessionWebSecurityConfig.java
@@ -0,0 +1,105 @@
+/*
+ * Copyright (c) 2018 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.webservice.weblayer;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.core.annotation.Order;
+import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
+import org.springframework.security.config.annotation.web.builders.HttpSecurity;
+import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
+import org.springframework.security.config.http.SessionCreationPolicy;
+import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
+import org.springframework.security.web.util.matcher.OrRequestMatcher;
+import org.springframework.security.web.util.matcher.RequestMatcher;
+
+import ch.ethz.seb.sebserver.gbl.profile.WebServiceProfile;
+
+/** Spring web security configuration for all endpoints needed for SEB-Client session management.
+ * This are:
+ *
+ *
+ * - /sebauth/sebhandshake/ the SEB-Client handshake and authentication endpoint
+ * - /sebauth/lmshandshake/ the LMS-Client handshake and authentication endpoint
+ * - /ws/ the root of all web-socket endpoints on HTTP level
+ *
+ *
+ * This configuration secures the above endpoints by using custom client authentication filter */
+@Configuration
+@WebServiceProfile
+@EnableGlobalMethodSecurity(prePostEnabled = true)
+@Order(2)
+public class ClientSessionWebSecurityConfig extends WebSecurityConfigurerAdapter {
+
+ public static final AntPathRequestMatcher SEB_HANDSHAKE_ENDPOINT =
+ new AntPathRequestMatcher("/sebauth/sebhandshake/**");
+ public static final AntPathRequestMatcher SEB_WEB_SOCKET_ENDPOINT =
+ new AntPathRequestMatcher("/ws/**");
+ public static final AntPathRequestMatcher LMS_HANDSHAKE_ENDPOINT =
+ new AntPathRequestMatcher("/sebauth/lmshandshake/**");
+
+ public static final RequestMatcher SEB_CLIENT_ENDPOINTS = new OrRequestMatcher(
+ SEB_HANDSHAKE_ENDPOINT,
+ SEB_WEB_SOCKET_ENDPOINT);
+
+ public static final RequestMatcher SEB_CONNECTION_PROTECTED_URLS = new OrRequestMatcher(
+ SEB_CLIENT_ENDPOINTS,
+ LMS_HANDSHAKE_ENDPOINT);
+
+ @Autowired
+ private CustomAuthenticationError customAuthenticationError;
+
+ @Override
+ protected void configure(final HttpSecurity http) throws Exception {
+ System.out.println("**************** WebServiceWebConfig: ");
+ //@formatter:off
+ http
+ // The Web-Service is designed as a stateless Rest API
+ // for SEB session management only endpoints for handshake and web-socket is used what is stateless on HTTP
+ .sessionManagement()
+ .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
+
+// TODO
+// .and()
+// .requestMatcher(SEB_CONNECTION_PROTECTED_URLS)
+// .addFilterBefore(
+// this.sebClientAuthenticationFilter,
+// BasicAuthenticationFilter.class)
+// .addFilterBefore(
+// this.lmsClientAuthenticationFilter,
+// SEBClientAuthenticationFilter.class)
+// .authorizeRequests()
+// .requestMatchers(SEB_CONNECTION_PROTECTED_URLS)
+// .authenticated()
+// instead of:
+
+ .and()
+ .antMatcher("/webservice/**")
+ .authorizeRequests()
+ .anyRequest()
+ .fullyAuthenticated()
+// end TODO
+
+ .and()
+ .exceptionHandling()
+ .defaultAuthenticationEntryPointFor(
+ this.customAuthenticationError,
+ SEB_CONNECTION_PROTECTED_URLS)
+
+ .and()
+ // disable session based security and functionality
+ .formLogin().disable()
+ .httpBasic().disable()
+ .logout().disable()
+ .headers().frameOptions().disable()
+ .and()
+ .csrf().disable();
+ //@formatter:on
+ }
+}
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/CustomAuthenticationError.java b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/CustomAuthenticationError.java
new file mode 100644
index 00000000..6bc72050
--- /dev/null
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/CustomAuthenticationError.java
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2018 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.webservice.weblayer;
+
+import java.io.IOException;
+
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.springframework.http.MediaType;
+import org.springframework.security.core.AuthenticationException;
+import org.springframework.security.web.AuthenticationEntryPoint;
+import org.springframework.stereotype.Component;
+
+/** Implements a custom unauthorized authentication error end-point */
+@Component
+public class CustomAuthenticationError implements AuthenticationEntryPoint {
+
+ @Override
+ public void commence(final HttpServletRequest request, final HttpServletResponse response,
+ final AuthenticationException authenticationException) throws IOException, ServletException {
+
+ response.setContentType(MediaType.APPLICATION_JSON_UTF8_VALUE);
+ response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
+ response.getOutputStream().println("{ \"error\": \"" + authenticationException.getMessage() + "\" }");
+
+ }
+}
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/WebExceptionHandler.java b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/WebExceptionHandler.java
new file mode 100644
index 00000000..99f6c3df
--- /dev/null
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/WebExceptionHandler.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2018 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.webservice.weblayer;
+
+import org.springframework.core.Ordered;
+import org.springframework.core.annotation.Order;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.ControllerAdvice;
+import org.springframework.web.context.request.WebRequest;
+import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;
+
+import ch.ethz.seb.sebserver.gbl.profile.WebServiceProfile;
+
+@Order(Ordered.HIGHEST_PRECEDENCE)
+@ControllerAdvice
+@WebServiceProfile
+public class WebExceptionHandler extends ResponseEntityExceptionHandler {
+
+ @Override
+ protected ResponseEntity