Skip to content

Commit

Permalink
generated DB Model for 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
anhefti committed Sep 3, 2024
1 parent 322ac10 commit 5a8e982
Show file tree
Hide file tree
Showing 98 changed files with 1,551 additions and 1,551 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import javax.annotation.Generated;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator",comments="ch.ethz.seb.sebserver.gen.DomainModelNameReferencePlugin",date="2024-04-22T15:58:16.933+02:00")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator",comments="ch.ethz.seb.sebserver.gen.DomainModelNameReferencePlugin",date="2024-09-03T11:17:26.971+02:00")
public enum EntityType {
CONFIGURATION_ATTRIBUTE,
CONFIGURATION_VALUE,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/ethz/seb/sebserver/gbl/model/Domain.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/** Defines the global names of the domain model and domain model fields.
* This shall be used as a static overall domain model names reference within SEB Server Web-Service as well as within the integrated GUI
* This file is generated by the org.eth.demo.sebserver.gen.DomainModelNameReferencePlugin and must not be edited manually.**/
@Generated(value="org.mybatis.generator.api.MyBatisGenerator",comments="ch.ethz.seb.sebserver.gen.DomainModelNameReferencePlugin",date="2024-04-22T15:58:16.903+02:00")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator",comments="ch.ethz.seb.sebserver.gen.DomainModelNameReferencePlugin",date="2024-09-03T11:17:26.914+02:00")
public interface Domain {

interface CONFIGURATION_ATTRIBUTE {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
import org.mybatis.dynamic.sql.SqlTable;

public final class AdditionalAttributeRecordDynamicSqlSupport {
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
public static final AdditionalAttributeRecord additionalAttributeRecord = new AdditionalAttributeRecord();

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source field: additional_attributes.id")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source field: additional_attributes.id")
public static final SqlColumn<Long> id = additionalAttributeRecord.id;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source field: additional_attributes.entity_type")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source field: additional_attributes.entity_type")
public static final SqlColumn<String> entityType = additionalAttributeRecord.entityType;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source field: additional_attributes.entity_id")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source field: additional_attributes.entity_id")
public static final SqlColumn<Long> entityId = additionalAttributeRecord.entityId;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source field: additional_attributes.name")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source field: additional_attributes.name")
public static final SqlColumn<String> name = additionalAttributeRecord.name;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source field: additional_attributes.value")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source field: additional_attributes.value")
public static final SqlColumn<String> value = additionalAttributeRecord.value;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
public static final class AdditionalAttributeRecord extends SqlTable {
public final SqlColumn<Long> id = column("id", JDBCType.BIGINT);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@

@Mapper
public interface AdditionalAttributeRecordMapper {
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
long count(SelectStatementProvider selectStatement);

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
@DeleteProvider(type=SqlProviderAdapter.class, method="delete")
int delete(DeleteStatementProvider deleteStatement);

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
@InsertProvider(type=SqlProviderAdapter.class, method="insert")
@SelectKey(statement="SELECT LAST_INSERT_ID()", keyProperty="record.id", before=false, resultType=Long.class)
int insert(InsertStatementProvider<AdditionalAttributeRecord> insertStatement);

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
Expand All @@ -56,7 +56,7 @@ public interface AdditionalAttributeRecordMapper {
})
AdditionalAttributeRecord selectOne(SelectStatementProvider selectStatement);

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
@SelectProvider(type=SqlProviderAdapter.class, method="select")
@ConstructorArgs({
@Arg(column="id", javaType=Long.class, jdbcType=JdbcType.BIGINT, id=true),
Expand All @@ -67,30 +67,30 @@ public interface AdditionalAttributeRecordMapper {
})
List<AdditionalAttributeRecord> selectMany(SelectStatementProvider selectStatement);

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
@UpdateProvider(type=SqlProviderAdapter.class, method="update")
int update(UpdateStatementProvider updateStatement);

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
default QueryExpressionDSL<MyBatis3SelectModelAdapter<Long>> countByExample() {
return SelectDSL.selectWithMapper(this::count, SqlBuilder.count())
.from(additionalAttributeRecord);
}

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
default DeleteDSL<MyBatis3DeleteModelAdapter<Integer>> deleteByExample() {
return DeleteDSL.deleteFromWithMapper(this::delete, additionalAttributeRecord);
}

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.978+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
default int deleteByPrimaryKey(Long id_) {
return DeleteDSL.deleteFromWithMapper(this::delete, additionalAttributeRecord)
.where(id, isEqualTo(id_))
.build()
.execute();
}

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.979+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
default int insert(AdditionalAttributeRecord record) {
return insert(SqlBuilder.insert(record)
.into(additionalAttributeRecord)
Expand All @@ -102,7 +102,7 @@ default int insert(AdditionalAttributeRecord record) {
.render(RenderingStrategy.MYBATIS3));
}

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.979+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
default int insertSelective(AdditionalAttributeRecord record) {
return insert(SqlBuilder.insert(record)
.into(additionalAttributeRecord)
Expand All @@ -114,19 +114,19 @@ default int insertSelective(AdditionalAttributeRecord record) {
.render(RenderingStrategy.MYBATIS3));
}

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.979+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
default QueryExpressionDSL<MyBatis3SelectModelAdapter<List<AdditionalAttributeRecord>>> selectByExample() {
return SelectDSL.selectWithMapper(this::selectMany, id, entityType, entityId, name, value)
.from(additionalAttributeRecord);
}

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.979+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
default QueryExpressionDSL<MyBatis3SelectModelAdapter<List<AdditionalAttributeRecord>>> selectDistinctByExample() {
return SelectDSL.selectDistinctWithMapper(this::selectMany, id, entityType, entityId, name, value)
.from(additionalAttributeRecord);
}

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.979+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
default AdditionalAttributeRecord selectByPrimaryKey(Long id_) {
return SelectDSL.selectWithMapper(this::selectOne, id, entityType, entityId, name, value)
.from(additionalAttributeRecord)
Expand All @@ -135,7 +135,7 @@ default AdditionalAttributeRecord selectByPrimaryKey(Long id_) {
.execute();
}

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.979+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
default UpdateDSL<MyBatis3UpdateModelAdapter<Integer>> updateByExample(AdditionalAttributeRecord record) {
return UpdateDSL.updateWithMapper(this::update, additionalAttributeRecord)
.set(entityType).equalTo(record::getEntityType)
Expand All @@ -144,7 +144,7 @@ default UpdateDSL<MyBatis3UpdateModelAdapter<Integer>> updateByExample(Additiona
.set(value).equalTo(record::getValue);
}

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.979+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
default UpdateDSL<MyBatis3UpdateModelAdapter<Integer>> updateByExampleSelective(AdditionalAttributeRecord record) {
return UpdateDSL.updateWithMapper(this::update, additionalAttributeRecord)
.set(entityType).equalToWhenPresent(record::getEntityType)
Expand All @@ -153,7 +153,7 @@ default UpdateDSL<MyBatis3UpdateModelAdapter<Integer>> updateByExampleSelective(
.set(value).equalToWhenPresent(record::getValue);
}

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.979+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
default int updateByPrimaryKey(AdditionalAttributeRecord record) {
return UpdateDSL.updateWithMapper(this::update, additionalAttributeRecord)
.set(entityType).equalTo(record::getEntityType)
Expand All @@ -165,7 +165,7 @@ default int updateByPrimaryKey(AdditionalAttributeRecord record) {
.execute();
}

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.979+02:00", comments="Source Table: additional_attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.029+02:00", comments="Source Table: additional_attributes")
default int updateByPrimaryKeySelective(AdditionalAttributeRecord record) {
return UpdateDSL.updateWithMapper(this::update, additionalAttributeRecord)
.set(entityType).equalToWhenPresent(record::getEntityType)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,37 @@
import org.mybatis.dynamic.sql.SqlTable;

public final class BatchActionRecordDynamicSqlSupport {
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.984+02:00", comments="Source Table: batch_action")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.033+02:00", comments="Source Table: batch_action")
public static final BatchActionRecord batchActionRecord = new BatchActionRecord();

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.984+02:00", comments="Source field: batch_action.id")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.033+02:00", comments="Source field: batch_action.id")
public static final SqlColumn<Long> id = batchActionRecord.id;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.984+02:00", comments="Source field: batch_action.institution_id")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.033+02:00", comments="Source field: batch_action.institution_id")
public static final SqlColumn<Long> institutionId = batchActionRecord.institutionId;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.984+02:00", comments="Source field: batch_action.owner")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.033+02:00", comments="Source field: batch_action.owner")
public static final SqlColumn<String> owner = batchActionRecord.owner;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.984+02:00", comments="Source field: batch_action.action_type")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.033+02:00", comments="Source field: batch_action.action_type")
public static final SqlColumn<String> actionType = batchActionRecord.actionType;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.984+02:00", comments="Source field: batch_action.attributes")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.033+02:00", comments="Source field: batch_action.attributes")
public static final SqlColumn<String> attributes = batchActionRecord.attributes;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.984+02:00", comments="Source field: batch_action.source_ids")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.033+02:00", comments="Source field: batch_action.source_ids")
public static final SqlColumn<String> sourceIds = batchActionRecord.sourceIds;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.984+02:00", comments="Source field: batch_action.successful")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.033+02:00", comments="Source field: batch_action.successful")
public static final SqlColumn<String> successful = batchActionRecord.successful;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.984+02:00", comments="Source field: batch_action.last_update")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.033+02:00", comments="Source field: batch_action.last_update")
public static final SqlColumn<Long> lastUpdate = batchActionRecord.lastUpdate;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.984+02:00", comments="Source field: batch_action.processor_id")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.033+02:00", comments="Source field: batch_action.processor_id")
public static final SqlColumn<String> processorId = batchActionRecord.processorId;

@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-04-22T15:58:16.984+02:00", comments="Source Table: batch_action")
@Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-09-03T11:17:27.033+02:00", comments="Source Table: batch_action")
public static final class BatchActionRecord extends SqlTable {
public final SqlColumn<Long> id = column("id", JDBCType.BIGINT);

Expand Down
Loading

0 comments on commit 5a8e982

Please sign in to comment.