feat: update jooq model
This commit is contained in:
parent
4be6c208d5
commit
9f4850db5b
|
@ -77,7 +77,7 @@ public class Keys {
|
|||
public static final UniqueKey<OauthAppRecord> KEY_OAUTH_APP_UK_REGISTRATION_ID = Internal.createUniqueKey(OauthApp.OAUTH_APP, DSL.name("KEY_oauth_app_uk_registration_id"), new TableField[] { OauthApp.OAUTH_APP.REGISTRATION_ID }, true);
|
||||
public static final UniqueKey<OperationLogRecord> KEY_OPERATION_LOG_PRIMARY = Internal.createUniqueKey(OperationLog.OPERATION_LOG, DSL.name("KEY_operation_log_PRIMARY"), new TableField[] { OperationLog.OPERATION_LOG.ID }, true);
|
||||
public static final UniqueKey<ProjectRecord> KEY_PROJECT_PRIMARY = Internal.createUniqueKey(Project.PROJECT, DSL.name("KEY_project_PRIMARY"), new TableField[] { Project.PROJECT.ID }, true);
|
||||
public static final UniqueKey<ProjectRecord> KEY_PROJECT_UK_GROUP_ID_NAME = Internal.createUniqueKey(Project.PROJECT, DSL.name("KEY_project_uk_group_id_name"), new TableField[] { Project.PROJECT.GROUP_ID, Project.PROJECT.NAME }, true);
|
||||
public static final UniqueKey<ProjectRecord> KEY_PROJECT_UK_GROUP_ID_NAME_DELETED_TOKEN = Internal.createUniqueKey(Project.PROJECT, DSL.name("KEY_project_uk_group_id_name_deleted_token"), new TableField[] { Project.PROJECT.GROUP_ID, Project.PROJECT.NAME, Project.PROJECT.DELETED_TOKEN }, true);
|
||||
public static final UniqueKey<ProjectSyncRuleRecord> KEY_PROJECT_SYNC_RULE_PRIMARY = Internal.createUniqueKey(ProjectSyncRule.PROJECT_SYNC_RULE, DSL.name("KEY_project_sync_rule_PRIMARY"), new TableField[] { ProjectSyncRule.PROJECT_SYNC_RULE.ID }, true);
|
||||
public static final UniqueKey<ProjectSyncRuleRecord> KEY_PROJECT_SYNC_RULE_UK_PROJECT_ID = Internal.createUniqueKey(ProjectSyncRule.PROJECT_SYNC_RULE, DSL.name("KEY_project_sync_rule_uk_project_id"), new TableField[] { ProjectSyncRule.PROJECT_SYNC_RULE.PROJECT_ID }, true);
|
||||
public static final UniqueKey<SysKeyRecord> KEY_SYS_KEY_PRIMARY = Internal.createUniqueKey(SysKey.SYS_KEY, DSL.name("KEY_sys_key_PRIMARY"), new TableField[] { SysKey.SYS_KEY.ID }, true);
|
||||
|
|
|
@ -17,7 +17,7 @@ import org.jooq.ForeignKey;
|
|||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row6;
|
||||
import org.jooq.Row7;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
|
@ -74,6 +74,12 @@ public class Project extends TableImpl<ProjectRecord> {
|
|||
*/
|
||||
public final TableField<ProjectRecord, Boolean> DELETED = createField(DSL.name("deleted"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.inline("0", SQLDataType.BOOLEAN)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>databasir.project.deleted_token</code>. default is 0, it
|
||||
* will be set to {id} when deleted
|
||||
*/
|
||||
public final TableField<ProjectRecord, Integer> DELETED_TOKEN = createField(DSL.name("deleted_token"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.inline("0", SQLDataType.INTEGER)), this, "default is 0, it will be set to {id} when deleted");
|
||||
|
||||
/**
|
||||
* The column <code>databasir.project.create_at</code>.
|
||||
*/
|
||||
|
@ -129,7 +135,7 @@ public class Project extends TableImpl<ProjectRecord> {
|
|||
|
||||
@Override
|
||||
public List<UniqueKey<ProjectRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.KEY_PROJECT_UK_GROUP_ID_NAME);
|
||||
return Arrays.asList(Keys.KEY_PROJECT_UK_GROUP_ID_NAME_DELETED_TOKEN);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -159,11 +165,11 @@ public class Project extends TableImpl<ProjectRecord> {
|
|||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row6 type methods
|
||||
// Row7 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row6<Integer, String, String, Integer, Boolean, LocalDateTime> fieldsRow() {
|
||||
return (Row6) super.fieldsRow();
|
||||
public Row7<Integer, String, String, Integer, Boolean, Integer, LocalDateTime> fieldsRow() {
|
||||
return (Row7) super.fieldsRow();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ public class ProjectPojo implements Serializable {
|
|||
private String description;
|
||||
private Integer groupId;
|
||||
private Boolean deleted;
|
||||
private Integer deletedToken;
|
||||
private LocalDateTime createAt;
|
||||
|
||||
public ProjectPojo() {}
|
||||
|
@ -31,6 +32,7 @@ public class ProjectPojo implements Serializable {
|
|||
this.description = value.description;
|
||||
this.groupId = value.groupId;
|
||||
this.deleted = value.deleted;
|
||||
this.deletedToken = value.deletedToken;
|
||||
this.createAt = value.createAt;
|
||||
}
|
||||
|
||||
|
@ -40,6 +42,7 @@ public class ProjectPojo implements Serializable {
|
|||
String description,
|
||||
Integer groupId,
|
||||
Boolean deleted,
|
||||
Integer deletedToken,
|
||||
LocalDateTime createAt
|
||||
) {
|
||||
this.id = id;
|
||||
|
@ -47,6 +50,7 @@ public class ProjectPojo implements Serializable {
|
|||
this.description = description;
|
||||
this.groupId = groupId;
|
||||
this.deleted = deleted;
|
||||
this.deletedToken = deletedToken;
|
||||
this.createAt = createAt;
|
||||
}
|
||||
|
||||
|
@ -120,6 +124,22 @@ public class ProjectPojo implements Serializable {
|
|||
this.deleted = deleted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>databasir.project.deleted_token</code>. default is 0, it
|
||||
* will be set to {id} when deleted
|
||||
*/
|
||||
public Integer getDeletedToken() {
|
||||
return this.deletedToken;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>databasir.project.deleted_token</code>. default is 0, it
|
||||
* will be set to {id} when deleted
|
||||
*/
|
||||
public void setDeletedToken(Integer deletedToken) {
|
||||
this.deletedToken = deletedToken;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>databasir.project.create_at</code>.
|
||||
*/
|
||||
|
@ -143,6 +163,7 @@ public class ProjectPojo implements Serializable {
|
|||
sb.append(", ").append(description);
|
||||
sb.append(", ").append(groupId);
|
||||
sb.append(", ").append(deleted);
|
||||
sb.append(", ").append(deletedToken);
|
||||
sb.append(", ").append(createAt);
|
||||
|
||||
sb.append(")");
|
||||
|
|
|
@ -11,8 +11,8 @@ import java.time.LocalDateTime;
|
|||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record6;
|
||||
import org.jooq.Row6;
|
||||
import org.jooq.Record7;
|
||||
import org.jooq.Row7;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
|
@ -20,7 +20,7 @@ import org.jooq.impl.UpdatableRecordImpl;
|
|||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ProjectRecord extends UpdatableRecordImpl<ProjectRecord> implements Record6<Integer, String, String, Integer, Boolean, LocalDateTime> {
|
||||
public class ProjectRecord extends UpdatableRecordImpl<ProjectRecord> implements Record7<Integer, String, String, Integer, Boolean, Integer, LocalDateTime> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
@ -94,18 +94,34 @@ public class ProjectRecord extends UpdatableRecordImpl<ProjectRecord> implements
|
|||
return (Boolean) get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>databasir.project.deleted_token</code>. default is 0, it
|
||||
* will be set to {id} when deleted
|
||||
*/
|
||||
public void setDeletedToken(Integer value) {
|
||||
set(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>databasir.project.deleted_token</code>. default is 0, it
|
||||
* will be set to {id} when deleted
|
||||
*/
|
||||
public Integer getDeletedToken() {
|
||||
return (Integer) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>databasir.project.create_at</code>.
|
||||
*/
|
||||
public void setCreateAt(LocalDateTime value) {
|
||||
set(5, value);
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>databasir.project.create_at</code>.
|
||||
*/
|
||||
public LocalDateTime getCreateAt() {
|
||||
return (LocalDateTime) get(5);
|
||||
return (LocalDateTime) get(6);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
@ -118,17 +134,17 @@ public class ProjectRecord extends UpdatableRecordImpl<ProjectRecord> implements
|
|||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record6 type implementation
|
||||
// Record7 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row6<Integer, String, String, Integer, Boolean, LocalDateTime> fieldsRow() {
|
||||
return (Row6) super.fieldsRow();
|
||||
public Row7<Integer, String, String, Integer, Boolean, Integer, LocalDateTime> fieldsRow() {
|
||||
return (Row7) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row6<Integer, String, String, Integer, Boolean, LocalDateTime> valuesRow() {
|
||||
return (Row6) super.valuesRow();
|
||||
public Row7<Integer, String, String, Integer, Boolean, Integer, LocalDateTime> valuesRow() {
|
||||
return (Row7) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -157,7 +173,12 @@ public class ProjectRecord extends UpdatableRecordImpl<ProjectRecord> implements
|
|||
}
|
||||
|
||||
@Override
|
||||
public Field<LocalDateTime> field6() {
|
||||
public Field<Integer> field6() {
|
||||
return Project.PROJECT.DELETED_TOKEN;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<LocalDateTime> field7() {
|
||||
return Project.PROJECT.CREATE_AT;
|
||||
}
|
||||
|
||||
|
@ -187,7 +208,12 @@ public class ProjectRecord extends UpdatableRecordImpl<ProjectRecord> implements
|
|||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime component6() {
|
||||
public Integer component6() {
|
||||
return getDeletedToken();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime component7() {
|
||||
return getCreateAt();
|
||||
}
|
||||
|
||||
|
@ -217,7 +243,12 @@ public class ProjectRecord extends UpdatableRecordImpl<ProjectRecord> implements
|
|||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime value6() {
|
||||
public Integer value6() {
|
||||
return getDeletedToken();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime value7() {
|
||||
return getCreateAt();
|
||||
}
|
||||
|
||||
|
@ -252,19 +283,26 @@ public class ProjectRecord extends UpdatableRecordImpl<ProjectRecord> implements
|
|||
}
|
||||
|
||||
@Override
|
||||
public ProjectRecord value6(LocalDateTime value) {
|
||||
public ProjectRecord value6(Integer value) {
|
||||
setDeletedToken(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProjectRecord value7(LocalDateTime value) {
|
||||
setCreateAt(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProjectRecord values(Integer value1, String value2, String value3, Integer value4, Boolean value5, LocalDateTime value6) {
|
||||
public ProjectRecord values(Integer value1, String value2, String value3, Integer value4, Boolean value5, Integer value6, LocalDateTime value7) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
value4(value4);
|
||||
value5(value5);
|
||||
value6(value6);
|
||||
value7(value7);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -282,7 +320,7 @@ public class ProjectRecord extends UpdatableRecordImpl<ProjectRecord> implements
|
|||
/**
|
||||
* Create a detached, initialised ProjectRecord
|
||||
*/
|
||||
public ProjectRecord(Integer id, String name, String description, Integer groupId, Boolean deleted, LocalDateTime createAt) {
|
||||
public ProjectRecord(Integer id, String name, String description, Integer groupId, Boolean deleted, Integer deletedToken, LocalDateTime createAt) {
|
||||
super(Project.PROJECT);
|
||||
|
||||
setId(id);
|
||||
|
@ -290,6 +328,7 @@ public class ProjectRecord extends UpdatableRecordImpl<ProjectRecord> implements
|
|||
setDescription(description);
|
||||
setGroupId(groupId);
|
||||
setDeleted(deleted);
|
||||
setDeletedToken(deletedToken);
|
||||
setCreateAt(createAt);
|
||||
}
|
||||
|
||||
|
@ -305,6 +344,7 @@ public class ProjectRecord extends UpdatableRecordImpl<ProjectRecord> implements
|
|||
setDescription(value.getDescription());
|
||||
setGroupId(value.getGroupId());
|
||||
setDeleted(value.getDeleted());
|
||||
setDeletedToken(value.getDeletedToken());
|
||||
setCreateAt(value.getCreateAt());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue