SUPPORT-9561: add changeset; generate db beans
This commit is contained in:
parent
84cfb974f4
commit
8daa1bab7c
6 changed files with 389 additions and 1 deletions
|
|
@ -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.DefaultCatalog;
|
||||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.Databasechangelog;
|
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.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.InteractionLog;
|
||||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OkopfRecords;
|
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OkopfRecords;
|
||||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OrganizationAllowed;
|
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;
|
public final Databasechangeloglock DATABASECHANGELOGLOCK = Databasechangeloglock.DATABASECHANGELOGLOCK;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>public.excerpt_history</code>.
|
||||||
|
*/
|
||||||
|
public final ExcerptHistory EXCERPT_HISTORY = ExcerptHistory.EXCERPT_HISTORY;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The table <code>public.interaction_log</code>.
|
* The table <code>public.interaction_log</code>.
|
||||||
*/
|
*/
|
||||||
|
|
@ -81,6 +87,7 @@ public class Public extends SchemaImpl {
|
||||||
return Arrays.asList(
|
return Arrays.asList(
|
||||||
Databasechangelog.DATABASECHANGELOG,
|
Databasechangelog.DATABASECHANGELOG,
|
||||||
Databasechangeloglock.DATABASECHANGELOGLOCK,
|
Databasechangeloglock.DATABASECHANGELOGLOCK,
|
||||||
|
ExcerptHistory.EXCERPT_HISTORY,
|
||||||
InteractionLog.INTERACTION_LOG,
|
InteractionLog.INTERACTION_LOG,
|
||||||
OkopfRecords.OKOPF_RECORDS,
|
OkopfRecords.OKOPF_RECORDS,
|
||||||
OrganizationAllowed.ORGANIZATION_ALLOWED,
|
OrganizationAllowed.ORGANIZATION_ALLOWED,
|
||||||
|
|
|
||||||
|
|
@ -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.Databasechangelog;
|
||||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.Databasechangeloglock;
|
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.InteractionLog;
|
||||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OkopfRecords;
|
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OkopfRecords;
|
||||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OrganizationAllowed;
|
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;
|
public static final Databasechangeloglock DATABASECHANGELOGLOCK = Databasechangeloglock.DATABASECHANGELOGLOCK;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The table <code>public.excerpt_history</code>.
|
||||||
|
*/
|
||||||
|
public static final ExcerptHistory EXCERPT_HISTORY = ExcerptHistory.EXCERPT_HISTORY;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The table <code>public.interaction_log</code>.
|
* The table <code>public.interaction_log</code>.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -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<ExcerptHistoryRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>public.excerpt_history</code>
|
||||||
|
*/
|
||||||
|
public static final ExcerptHistory EXCERPT_HISTORY = new ExcerptHistory();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<ExcerptHistoryRecord> getRecordType() {
|
||||||
|
return ExcerptHistoryRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>public.excerpt_history.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ExcerptHistoryRecord, Long> ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>public.excerpt_history.ervu_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ExcerptHistoryRecord, String> ERVU_ID = createField(DSL.name("ervu_id"), SQLDataType.VARCHAR(36).nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>public.excerpt_history.prn_oid</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ExcerptHistoryRecord, String> PRN_OID = createField(DSL.name("prn_oid"), SQLDataType.VARCHAR(10).nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>public.excerpt_history.url</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ExcerptHistoryRecord, String> URL = createField(DSL.name("url"), SQLDataType.CLOB, this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>public.excerpt_history.datetime</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<ExcerptHistoryRecord, Timestamp> DATETIME = createField(DSL.name("datetime"), SQLDataType.TIMESTAMP(0), this, "");
|
||||||
|
|
||||||
|
private ExcerptHistory(Name alias, Table<ExcerptHistoryRecord> aliased) {
|
||||||
|
this(alias, aliased, (Field<?>[]) null, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private ExcerptHistory(Name alias, Table<ExcerptHistoryRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||||
|
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>public.excerpt_history</code> table reference
|
||||||
|
*/
|
||||||
|
public ExcerptHistory(String alias) {
|
||||||
|
this(DSL.name(alias), EXCERPT_HISTORY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>public.excerpt_history</code> table reference
|
||||||
|
*/
|
||||||
|
public ExcerptHistory(Name alias) {
|
||||||
|
this(alias, EXCERPT_HISTORY);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>public.excerpt_history</code> table reference
|
||||||
|
*/
|
||||||
|
public ExcerptHistory() {
|
||||||
|
this(DSL.name("excerpt_history"), null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return aliased() ? null : Public.PUBLIC;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Identity<ExcerptHistoryRecord, Long> getIdentity() {
|
||||||
|
return (Identity<ExcerptHistoryRecord, Long>) 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<? extends Condition> 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<Boolean> 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));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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<ExcerptHistoryRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>public.excerpt_history.id</code>.
|
||||||
|
*/
|
||||||
|
public void setId(Long value) {
|
||||||
|
set(0, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>public.excerpt_history.id</code>.
|
||||||
|
*/
|
||||||
|
public Long getId() {
|
||||||
|
return (Long) get(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>public.excerpt_history.ervu_id</code>.
|
||||||
|
*/
|
||||||
|
public void setErvuId(String value) {
|
||||||
|
set(1, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>public.excerpt_history.ervu_id</code>.
|
||||||
|
*/
|
||||||
|
public String getErvuId() {
|
||||||
|
return (String) get(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>public.excerpt_history.prn_oid</code>.
|
||||||
|
*/
|
||||||
|
public void setPrnOid(String value) {
|
||||||
|
set(2, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>public.excerpt_history.prn_oid</code>.
|
||||||
|
*/
|
||||||
|
public String getPrnOid() {
|
||||||
|
return (String) get(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>public.excerpt_history.url</code>.
|
||||||
|
*/
|
||||||
|
public void setUrl(String value) {
|
||||||
|
set(3, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>public.excerpt_history.url</code>.
|
||||||
|
*/
|
||||||
|
public String getUrl() {
|
||||||
|
return (String) get(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>public.excerpt_history.datetime</code>.
|
||||||
|
*/
|
||||||
|
public void setDatetime(Timestamp value) {
|
||||||
|
set(4, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>public.excerpt_history.datetime</code>.
|
||||||
|
*/
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
|
||||||
|
|
||||||
|
<changeSet id="001" author="gulnaz">
|
||||||
|
<comment>Add excerpt history table</comment>
|
||||||
|
<createTable schemaName="public" tableName="excerpt_history">
|
||||||
|
<column name="id" type="BIGINT" autoIncrement="true">
|
||||||
|
<constraints nullable="false"/>
|
||||||
|
</column>
|
||||||
|
<column name="ervu_id" type="varchar(36)">
|
||||||
|
<constraints nullable="false"/>
|
||||||
|
</column>
|
||||||
|
<column name="prn_oid" type="varchar(10)">
|
||||||
|
<constraints nullable="false"/>
|
||||||
|
</column>
|
||||||
|
<column name="url" type="TEXT"/>
|
||||||
|
<column name="datetime" type="TIMESTAMP"/>
|
||||||
|
</createTable>
|
||||||
|
</changeSet>
|
||||||
|
</databaseChangeLog>
|
||||||
|
|
@ -11,5 +11,6 @@
|
||||||
<include file="2025-10-20-create-offset-column.xml" relativeToChangelogFile="true"/>
|
<include file="2025-10-20-create-offset-column.xml" relativeToChangelogFile="true"/>
|
||||||
<include file="2025-10-24-add-org-allowed-table.xml" relativeToChangelogFile="true"/>
|
<include file="2025-10-24-add-org-allowed-table.xml" relativeToChangelogFile="true"/>
|
||||||
<include file="2025-11-05-rename-column.xml" relativeToChangelogFile="true"/>
|
<include file="2025-11-05-rename-column.xml" relativeToChangelogFile="true"/>
|
||||||
|
<include file="2025-11-20_add-excerpt-history.xml" relativeToChangelogFile="true"/>
|
||||||
|
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue