feat: jooq model generate
This commit is contained in:
parent
4ee98da074
commit
fca7bd788e
|
@ -17,7 +17,7 @@ import org.jooq.ForeignKey;
|
|||
import org.jooq.Identity;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.Row8;
|
||||
import org.jooq.Row9;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
|
@ -89,6 +89,11 @@ public class DatabaseDocument extends TableImpl<DatabaseDocumentRecord> {
|
|||
*/
|
||||
public final TableField<DatabaseDocumentRecord, LocalDateTime> CREATE_AT = createField(DSL.name("create_at"), SQLDataType.LOCALDATETIME(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>databasir.database_document.is_archive</code>.
|
||||
*/
|
||||
public final TableField<DatabaseDocumentRecord, Boolean> IS_ARCHIVE = createField(DSL.name("is_archive"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.inline("0", SQLDataType.BOOLEAN)), this, "");
|
||||
|
||||
private DatabaseDocument(Name alias, Table<DatabaseDocumentRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
@ -171,11 +176,11 @@ public class DatabaseDocument extends TableImpl<DatabaseDocumentRecord> {
|
|||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Row8 type methods
|
||||
// Row9 type methods
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row8<Integer, Integer, String, String, String, Long, LocalDateTime, LocalDateTime> fieldsRow() {
|
||||
return (Row8) super.fieldsRow();
|
||||
public Row9<Integer, Integer, String, String, String, Long, LocalDateTime, LocalDateTime, Boolean> fieldsRow() {
|
||||
return (Row9) super.fieldsRow();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@ public class DatabaseDocumentPojo implements Serializable {
|
|||
private Long version;
|
||||
private LocalDateTime updateAt;
|
||||
private LocalDateTime createAt;
|
||||
private Boolean isArchive;
|
||||
|
||||
public DatabaseDocumentPojo() {}
|
||||
|
||||
|
@ -36,6 +37,7 @@ public class DatabaseDocumentPojo implements Serializable {
|
|||
this.version = value.version;
|
||||
this.updateAt = value.updateAt;
|
||||
this.createAt = value.createAt;
|
||||
this.isArchive = value.isArchive;
|
||||
}
|
||||
|
||||
public DatabaseDocumentPojo(
|
||||
|
@ -46,7 +48,8 @@ public class DatabaseDocumentPojo implements Serializable {
|
|||
String productVersion,
|
||||
Long version,
|
||||
LocalDateTime updateAt,
|
||||
LocalDateTime createAt
|
||||
LocalDateTime createAt,
|
||||
Boolean isArchive
|
||||
) {
|
||||
this.id = id;
|
||||
this.projectId = projectId;
|
||||
|
@ -56,6 +59,7 @@ public class DatabaseDocumentPojo implements Serializable {
|
|||
this.version = version;
|
||||
this.updateAt = updateAt;
|
||||
this.createAt = createAt;
|
||||
this.isArchive = isArchive;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -170,6 +174,20 @@ public class DatabaseDocumentPojo implements Serializable {
|
|||
this.createAt = createAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>databasir.database_document.is_archive</code>.
|
||||
*/
|
||||
public Boolean getIsArchive() {
|
||||
return this.isArchive;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>databasir.database_document.is_archive</code>.
|
||||
*/
|
||||
public void setIsArchive(Boolean isArchive) {
|
||||
this.isArchive = isArchive;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("DatabaseDocumentPojo (");
|
||||
|
@ -182,6 +200,7 @@ public class DatabaseDocumentPojo implements Serializable {
|
|||
sb.append(", ").append(version);
|
||||
sb.append(", ").append(updateAt);
|
||||
sb.append(", ").append(createAt);
|
||||
sb.append(", ").append(isArchive);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
|
|
|
@ -11,8 +11,8 @@ import java.time.LocalDateTime;
|
|||
|
||||
import org.jooq.Field;
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.Record8;
|
||||
import org.jooq.Row8;
|
||||
import org.jooq.Record9;
|
||||
import org.jooq.Row9;
|
||||
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 DatabaseDocumentRecord extends UpdatableRecordImpl<DatabaseDocumentRecord> implements Record8<Integer, Integer, String, String, String, Long, LocalDateTime, LocalDateTime> {
|
||||
public class DatabaseDocumentRecord extends UpdatableRecordImpl<DatabaseDocumentRecord> implements Record9<Integer, Integer, String, String, String, Long, LocalDateTime, LocalDateTime, Boolean> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
@ -136,6 +136,20 @@ public class DatabaseDocumentRecord extends UpdatableRecordImpl<DatabaseDocument
|
|||
return (LocalDateTime) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>databasir.database_document.is_archive</code>.
|
||||
*/
|
||||
public void setIsArchive(Boolean value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>databasir.database_document.is_archive</code>.
|
||||
*/
|
||||
public Boolean getIsArchive() {
|
||||
return (Boolean) get(8);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
@ -146,17 +160,17 @@ public class DatabaseDocumentRecord extends UpdatableRecordImpl<DatabaseDocument
|
|||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record8 type implementation
|
||||
// Record9 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Row8<Integer, Integer, String, String, String, Long, LocalDateTime, LocalDateTime> fieldsRow() {
|
||||
return (Row8) super.fieldsRow();
|
||||
public Row9<Integer, Integer, String, String, String, Long, LocalDateTime, LocalDateTime, Boolean> fieldsRow() {
|
||||
return (Row9) super.fieldsRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Row8<Integer, Integer, String, String, String, Long, LocalDateTime, LocalDateTime> valuesRow() {
|
||||
return (Row8) super.valuesRow();
|
||||
public Row9<Integer, Integer, String, String, String, Long, LocalDateTime, LocalDateTime, Boolean> valuesRow() {
|
||||
return (Row9) super.valuesRow();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -199,6 +213,11 @@ public class DatabaseDocumentRecord extends UpdatableRecordImpl<DatabaseDocument
|
|||
return DatabaseDocument.DATABASE_DOCUMENT.CREATE_AT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field<Boolean> field9() {
|
||||
return DatabaseDocument.DATABASE_DOCUMENT.IS_ARCHIVE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer component1() {
|
||||
return getId();
|
||||
|
@ -239,6 +258,11 @@ public class DatabaseDocumentRecord extends UpdatableRecordImpl<DatabaseDocument
|
|||
return getCreateAt();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean component9() {
|
||||
return getIsArchive();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer value1() {
|
||||
return getId();
|
||||
|
@ -279,6 +303,11 @@ public class DatabaseDocumentRecord extends UpdatableRecordImpl<DatabaseDocument
|
|||
return getCreateAt();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean value9() {
|
||||
return getIsArchive();
|
||||
}
|
||||
|
||||
@Override
|
||||
public DatabaseDocumentRecord value1(Integer value) {
|
||||
setId(value);
|
||||
|
@ -328,7 +357,13 @@ public class DatabaseDocumentRecord extends UpdatableRecordImpl<DatabaseDocument
|
|||
}
|
||||
|
||||
@Override
|
||||
public DatabaseDocumentRecord values(Integer value1, Integer value2, String value3, String value4, String value5, Long value6, LocalDateTime value7, LocalDateTime value8) {
|
||||
public DatabaseDocumentRecord value9(Boolean value) {
|
||||
setIsArchive(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DatabaseDocumentRecord values(Integer value1, Integer value2, String value3, String value4, String value5, Long value6, LocalDateTime value7, LocalDateTime value8, Boolean value9) {
|
||||
value1(value1);
|
||||
value2(value2);
|
||||
value3(value3);
|
||||
|
@ -337,6 +372,7 @@ public class DatabaseDocumentRecord extends UpdatableRecordImpl<DatabaseDocument
|
|||
value6(value6);
|
||||
value7(value7);
|
||||
value8(value8);
|
||||
value9(value9);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -354,7 +390,7 @@ public class DatabaseDocumentRecord extends UpdatableRecordImpl<DatabaseDocument
|
|||
/**
|
||||
* Create a detached, initialised DatabaseDocumentRecord
|
||||
*/
|
||||
public DatabaseDocumentRecord(Integer id, Integer projectId, String databaseName, String productName, String productVersion, Long version, LocalDateTime updateAt, LocalDateTime createAt) {
|
||||
public DatabaseDocumentRecord(Integer id, Integer projectId, String databaseName, String productName, String productVersion, Long version, LocalDateTime updateAt, LocalDateTime createAt, Boolean isArchive) {
|
||||
super(DatabaseDocument.DATABASE_DOCUMENT);
|
||||
|
||||
setId(id);
|
||||
|
@ -365,6 +401,7 @@ public class DatabaseDocumentRecord extends UpdatableRecordImpl<DatabaseDocument
|
|||
setVersion(version);
|
||||
setUpdateAt(updateAt);
|
||||
setCreateAt(createAt);
|
||||
setIsArchive(isArchive);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -382,6 +419,7 @@ public class DatabaseDocumentRecord extends UpdatableRecordImpl<DatabaseDocument
|
|||
setVersion(value.getVersion());
|
||||
setUpdateAt(value.getUpdateAt());
|
||||
setCreateAt(value.getCreateAt());
|
||||
setIsArchive(value.getIsArchive());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue