From 8daa1bab7cb5a4c3387a13b3d24ca4be027b9bc5 Mon Sep 17 00:00:00 2001 From: gulnaz Date: Mon, 24 Nov 2025 11:40:55 +0300 Subject: [PATCH] SUPPORT-9561: add changeset; generate db beans --- .../ervu_lkrp_ul/db_beans/public_/Public.java | 7 + .../ervu_lkrp_ul/db_beans/public_/Tables.java | 6 + .../public_/tables/ExcerptHistory.java | 238 ++++++++++++++++++ .../tables/records/ExcerptHistoryRecord.java | 116 +++++++++ .../v_1.0/2025-11-20_add-excerpt-history.xml | 20 ++ .../config/v_1.0/changelog-v_1.0.xml | 3 +- 6 files changed, 389 insertions(+), 1 deletion(-) create mode 100644 backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/tables/ExcerptHistory.java create mode 100644 backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/tables/records/ExcerptHistoryRecord.java create mode 100644 backend/src/main/resources/config/v_1.0/2025-11-20_add-excerpt-history.xml diff --git a/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/Public.java b/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/Public.java index 5d20db39..98fa6116 100644 --- a/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/Public.java +++ b/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/Public.java @@ -7,6 +7,7 @@ package ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_; import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.DefaultCatalog; import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.Databasechangelog; import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.Databasechangeloglock; +import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.ExcerptHistory; import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.InteractionLog; import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OkopfRecords; import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OrganizationAllowed; @@ -43,6 +44,11 @@ public class Public extends SchemaImpl { */ public final Databasechangeloglock DATABASECHANGELOGLOCK = Databasechangeloglock.DATABASECHANGELOGLOCK; + /** + * The table public.excerpt_history. + */ + public final ExcerptHistory EXCERPT_HISTORY = ExcerptHistory.EXCERPT_HISTORY; + /** * The table public.interaction_log. */ @@ -81,6 +87,7 @@ public class Public extends SchemaImpl { return Arrays.asList( Databasechangelog.DATABASECHANGELOG, Databasechangeloglock.DATABASECHANGELOGLOCK, + ExcerptHistory.EXCERPT_HISTORY, InteractionLog.INTERACTION_LOG, OkopfRecords.OKOPF_RECORDS, OrganizationAllowed.ORGANIZATION_ALLOWED, diff --git a/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/Tables.java b/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/Tables.java index 37305e26..84486edb 100644 --- a/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/Tables.java +++ b/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/Tables.java @@ -6,6 +6,7 @@ package ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_; import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.Databasechangelog; import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.Databasechangeloglock; +import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.ExcerptHistory; import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.InteractionLog; import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OkopfRecords; import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OrganizationAllowed; @@ -28,6 +29,11 @@ public class Tables { */ public static final Databasechangeloglock DATABASECHANGELOGLOCK = Databasechangeloglock.DATABASECHANGELOGLOCK; + /** + * The table public.excerpt_history. + */ + public static final ExcerptHistory EXCERPT_HISTORY = ExcerptHistory.EXCERPT_HISTORY; + /** * The table public.interaction_log. */ diff --git a/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/tables/ExcerptHistory.java b/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/tables/ExcerptHistory.java new file mode 100644 index 00000000..1acf5555 --- /dev/null +++ b/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/tables/ExcerptHistory.java @@ -0,0 +1,238 @@ +/* + * This file is generated by jOOQ. + */ +package ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables; + + +import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.Public; +import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.records.ExcerptHistoryRecord; + +import java.sql.Timestamp; +import java.util.Collection; + +import org.jooq.Condition; +import org.jooq.Field; +import org.jooq.Identity; +import org.jooq.Name; +import org.jooq.PlainSQL; +import org.jooq.QueryPart; +import org.jooq.SQL; +import org.jooq.Schema; +import org.jooq.Select; +import org.jooq.Stringly; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class ExcerptHistory extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.excerpt_history + */ + public static final ExcerptHistory EXCERPT_HISTORY = new ExcerptHistory(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return ExcerptHistoryRecord.class; + } + + /** + * The column public.excerpt_history.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, ""); + + /** + * The column public.excerpt_history.ervu_id. + */ + public final TableField ERVU_ID = createField(DSL.name("ervu_id"), SQLDataType.VARCHAR(36).nullable(false), this, ""); + + /** + * The column public.excerpt_history.prn_oid. + */ + public final TableField PRN_OID = createField(DSL.name("prn_oid"), SQLDataType.VARCHAR(10).nullable(false), this, ""); + + /** + * The column public.excerpt_history.url. + */ + public final TableField URL = createField(DSL.name("url"), SQLDataType.CLOB, this, ""); + + /** + * The column public.excerpt_history.datetime. + */ + public final TableField DATETIME = createField(DSL.name("datetime"), SQLDataType.TIMESTAMP(0), this, ""); + + private ExcerptHistory(Name alias, Table aliased) { + this(alias, aliased, (Field[]) null, null); + } + + private ExcerptHistory(Name alias, Table aliased, Field[] parameters, Condition where) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); + } + + /** + * Create an aliased public.excerpt_history table reference + */ + public ExcerptHistory(String alias) { + this(DSL.name(alias), EXCERPT_HISTORY); + } + + /** + * Create an aliased public.excerpt_history table reference + */ + public ExcerptHistory(Name alias) { + this(alias, EXCERPT_HISTORY); + } + + /** + * Create a public.excerpt_history table reference + */ + public ExcerptHistory() { + this(DSL.name("excerpt_history"), null); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public Identity getIdentity() { + return (Identity) super.getIdentity(); + } + + @Override + public ExcerptHistory as(String alias) { + return new ExcerptHistory(DSL.name(alias), this); + } + + @Override + public ExcerptHistory as(Name alias) { + return new ExcerptHistory(alias, this); + } + + @Override + public ExcerptHistory as(Table alias) { + return new ExcerptHistory(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public ExcerptHistory rename(String name) { + return new ExcerptHistory(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public ExcerptHistory rename(Name name) { + return new ExcerptHistory(name, null); + } + + /** + * Rename this table + */ + @Override + public ExcerptHistory rename(Table name) { + return new ExcerptHistory(name.getQualifiedName(), null); + } + + /** + * Create an inline derived table from this table + */ + @Override + public ExcerptHistory where(Condition condition) { + return new ExcerptHistory(getQualifiedName(), aliased() ? this : null, null, condition); + } + + /** + * Create an inline derived table from this table + */ + @Override + public ExcerptHistory where(Collection conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public ExcerptHistory where(Condition... conditions) { + return where(DSL.and(conditions)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public ExcerptHistory where(Field condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public ExcerptHistory where(SQL condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public ExcerptHistory where(@Stringly.SQL String condition) { + return where(DSL.condition(condition)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public ExcerptHistory where(@Stringly.SQL String condition, Object... binds) { + return where(DSL.condition(condition, binds)); + } + + /** + * Create an inline derived table from this table + */ + @Override + @PlainSQL + public ExcerptHistory where(@Stringly.SQL String condition, QueryPart... parts) { + return where(DSL.condition(condition, parts)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public ExcerptHistory whereExists(Select select) { + return where(DSL.exists(select)); + } + + /** + * Create an inline derived table from this table + */ + @Override + public ExcerptHistory whereNotExists(Select select) { + return where(DSL.notExists(select)); + } +} diff --git a/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/tables/records/ExcerptHistoryRecord.java b/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/tables/records/ExcerptHistoryRecord.java new file mode 100644 index 00000000..4b437d54 --- /dev/null +++ b/backend/src/main/java/ervu_lkrp_ul/ervu_lkrp_ul/db_beans/public_/tables/records/ExcerptHistoryRecord.java @@ -0,0 +1,116 @@ +/* + * This file is generated by jOOQ. + */ +package ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.records; + + +import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.ExcerptHistory; + +import java.sql.Timestamp; + +import org.jooq.impl.TableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class ExcerptHistoryRecord extends TableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.excerpt_history.id. + */ + public void setId(Long value) { + set(0, value); + } + + /** + * Getter for public.excerpt_history.id. + */ + public Long getId() { + return (Long) get(0); + } + + /** + * Setter for public.excerpt_history.ervu_id. + */ + public void setErvuId(String value) { + set(1, value); + } + + /** + * Getter for public.excerpt_history.ervu_id. + */ + public String getErvuId() { + return (String) get(1); + } + + /** + * Setter for public.excerpt_history.prn_oid. + */ + public void setPrnOid(String value) { + set(2, value); + } + + /** + * Getter for public.excerpt_history.prn_oid. + */ + public String getPrnOid() { + return (String) get(2); + } + + /** + * Setter for public.excerpt_history.url. + */ + public void setUrl(String value) { + set(3, value); + } + + /** + * Getter for public.excerpt_history.url. + */ + public String getUrl() { + return (String) get(3); + } + + /** + * Setter for public.excerpt_history.datetime. + */ + public void setDatetime(Timestamp value) { + set(4, value); + } + + /** + * Getter for public.excerpt_history.datetime. + */ + public Timestamp getDatetime() { + return (Timestamp) get(4); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached ExcerptHistoryRecord + */ + public ExcerptHistoryRecord() { + super(ExcerptHistory.EXCERPT_HISTORY); + } + + /** + * Create a detached, initialised ExcerptHistoryRecord + */ + public ExcerptHistoryRecord(Long id, String ervuId, String prnOid, String url, Timestamp datetime) { + super(ExcerptHistory.EXCERPT_HISTORY); + + setId(id); + setErvuId(ervuId); + setPrnOid(prnOid); + setUrl(url); + setDatetime(datetime); + resetChangedOnNotNull(); + } +} diff --git a/backend/src/main/resources/config/v_1.0/2025-11-20_add-excerpt-history.xml b/backend/src/main/resources/config/v_1.0/2025-11-20_add-excerpt-history.xml new file mode 100644 index 00000000..f2f821e0 --- /dev/null +++ b/backend/src/main/resources/config/v_1.0/2025-11-20_add-excerpt-history.xml @@ -0,0 +1,20 @@ + + + + + Add excerpt history table + + + + + + + + + + + + + + + diff --git a/backend/src/main/resources/config/v_1.0/changelog-v_1.0.xml b/backend/src/main/resources/config/v_1.0/changelog-v_1.0.xml index 4180dff3..e2fd7bc6 100644 --- a/backend/src/main/resources/config/v_1.0/changelog-v_1.0.xml +++ b/backend/src/main/resources/config/v_1.0/changelog-v_1.0.xml @@ -11,5 +11,6 @@ + - \ No newline at end of file +