SUPPORT-9296: add changeset, update db beans
This commit is contained in:
parent
d80b01b55b
commit
992e2c9a8a
8 changed files with 87 additions and 47 deletions
|
|
@ -136,14 +136,14 @@ public class Recruitment extends TableImpl<RecruitmentRecord> {
|
|||
public final TableField<RecruitmentRecord, String> SUBPOENA_SERIES_CODE = createField(DSL.name("subpoena_series_code"), SQLDataType.VARCHAR(64), this, "Серия");
|
||||
|
||||
/**
|
||||
* The column <code>public.recruitment.region_code</code>. Код региона
|
||||
* The column <code>public.recruitment.region_code</code>.
|
||||
*/
|
||||
public final TableField<RecruitmentRecord, String> REGION_CODE = createField(DSL.name("region_code"), SQLDataType.CLOB, this, "Код региона");
|
||||
public final TableField<RecruitmentRecord, String> REGION_CODE = createField(DSL.name("region_code"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>public.recruitment.ts</code>. Отметка времени
|
||||
* The column <code>public.recruitment.ts</code>.
|
||||
*/
|
||||
public final TableField<RecruitmentRecord, Timestamp> TS = createField(DSL.name("ts"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "Отметка времени");
|
||||
public final TableField<RecruitmentRecord, Timestamp> TS = createField(DSL.name("ts"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>public.recruitment.name</code>.
|
||||
|
|
|
|||
|
|
@ -248,6 +248,12 @@ public class UserApplicationList extends TableImpl<UserApplicationListRecord> {
|
|||
*/
|
||||
public final TableField<UserApplicationListRecord, Timestamp> SENT_DATE = createField(DSL.name("sent_date"), SQLDataType.TIMESTAMP(0), this, "Дата отправки заявки в ЕРВУ");
|
||||
|
||||
/**
|
||||
* The column <code>public.user_application_list.blocked_region</code>.
|
||||
* Заблокированная область (ACCOUNT, PERSON или BOTH)
|
||||
*/
|
||||
public final TableField<UserApplicationListRecord, String> BLOCKED_REGION = createField(DSL.name("blocked_region"), SQLDataType.VARCHAR(7), this, "Заблокированная область (ACCOUNT, PERSON или BOTH)");
|
||||
|
||||
private UserApplicationList(Name alias, Table<UserApplicationListRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,6 +92,12 @@ public class UserApplicationRole extends TableImpl<UserApplicationRoleRecord> {
|
|||
*/
|
||||
public final TableField<UserApplicationRoleRecord, Boolean> ADMIN_ROLE = createField(DSL.name("admin_role"), SQLDataType.BOOLEAN, this, "Признак роли администратора");
|
||||
|
||||
/**
|
||||
* The column <code>public.user_application_role.deleted</code>. Дата и
|
||||
* время окончания действия роли
|
||||
*/
|
||||
public final TableField<UserApplicationRoleRecord, Timestamp> DELETED = createField(DSL.name("deleted"), SQLDataType.TIMESTAMP(0), this, "Дата и время окончания действия роли");
|
||||
|
||||
/**
|
||||
* The column <code>public.user_application_role.active</code>.
|
||||
*/
|
||||
|
|
@ -102,12 +108,6 @@ public class UserApplicationRole extends TableImpl<UserApplicationRoleRecord> {
|
|||
*/
|
||||
public final TableField<UserApplicationRoleRecord, Integer> VERSION = createField(DSL.name("version"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>public.user_application_role.deleted</code>. Дата и
|
||||
* время окончания действия роли
|
||||
*/
|
||||
public final TableField<UserApplicationRoleRecord, Timestamp> DELETED = createField(DSL.name("deleted"), SQLDataType.TIMESTAMP(0), this, "Дата и время окончания действия роли");
|
||||
|
||||
private UserApplicationRole(Name alias, Table<UserApplicationRoleRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -246,28 +246,28 @@ public class RecruitmentRecord extends UpdatableRecordImpl<RecruitmentRecord> {
|
|||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>public.recruitment.region_code</code>. Код региона
|
||||
* Setter for <code>public.recruitment.region_code</code>.
|
||||
*/
|
||||
public void setRegionCode(String value) {
|
||||
set(15, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>public.recruitment.region_code</code>. Код региона
|
||||
* Getter for <code>public.recruitment.region_code</code>.
|
||||
*/
|
||||
public String getRegionCode() {
|
||||
return (String) get(15);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>public.recruitment.ts</code>. Отметка времени
|
||||
* Setter for <code>public.recruitment.ts</code>.
|
||||
*/
|
||||
public void setTs(Timestamp value) {
|
||||
set(16, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>public.recruitment.ts</code>. Отметка времени
|
||||
* Getter for <code>public.recruitment.ts</code>.
|
||||
*/
|
||||
public Timestamp getTs() {
|
||||
return (Timestamp) get(16);
|
||||
|
|
|
|||
|
|
@ -522,6 +522,22 @@ public class UserApplicationListRecord extends UpdatableRecordImpl<UserApplicati
|
|||
return (Timestamp) get(31);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>public.user_application_list.blocked_region</code>.
|
||||
* Заблокированная область (ACCOUNT, PERSON или BOTH)
|
||||
*/
|
||||
public void setBlockedRegion(String value) {
|
||||
set(32, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>public.user_application_list.blocked_region</code>.
|
||||
* Заблокированная область (ACCOUNT, PERSON или BOTH)
|
||||
*/
|
||||
public String getBlockedRegion() {
|
||||
return (String) get(32);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
@ -545,7 +561,7 @@ public class UserApplicationListRecord extends UpdatableRecordImpl<UserApplicati
|
|||
/**
|
||||
* Create a detached, initialised UserApplicationListRecord
|
||||
*/
|
||||
public UserApplicationListRecord(Long userApplicationListId, String applicationKind, String userLogin, String userPassword, String secondname, String firstname, String middlename, String phone, Timestamp startDate, Timestamp closeDate, String userStatus, String applicationStatus, String comment, Long jobPositionId, Long userRoleId, UUID recruitmentId, String userAccountId, String sex, Date birthDate, String snils, String jobPosition, Long numberApp, String editComment, String personId, String updateSecondname, String updateFirstname, String updateMiddlename, String updateSex, Date updateBirthDate, String updateJobPosition, String traceId, Timestamp sentDate) {
|
||||
public UserApplicationListRecord(Long userApplicationListId, String applicationKind, String userLogin, String userPassword, String secondname, String firstname, String middlename, String phone, Timestamp startDate, Timestamp closeDate, String userStatus, String applicationStatus, String comment, Long jobPositionId, Long userRoleId, UUID recruitmentId, String userAccountId, String sex, Date birthDate, String snils, String jobPosition, Long numberApp, String editComment, String personId, String updateSecondname, String updateFirstname, String updateMiddlename, String updateSex, Date updateBirthDate, String updateJobPosition, String traceId, Timestamp sentDate, String blockedRegion) {
|
||||
super(UserApplicationList.USER_APPLICATION_LIST);
|
||||
|
||||
setUserApplicationListId(userApplicationListId);
|
||||
|
|
@ -580,6 +596,7 @@ public class UserApplicationListRecord extends UpdatableRecordImpl<UserApplicati
|
|||
setUpdateJobPosition(updateJobPosition);
|
||||
setTraceId(traceId);
|
||||
setSentDate(sentDate);
|
||||
setBlockedRegion(blockedRegion);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,40 +114,12 @@ public class UserApplicationRoleRecord extends UpdatableRecordImpl<UserApplicati
|
|||
return (Boolean) get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>public.user_application_role.active</code>.
|
||||
*/
|
||||
public void setActive(Boolean value) {
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>public.user_application_role.active</code>.
|
||||
*/
|
||||
public Boolean getActive() {
|
||||
return (Boolean) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>public.user_application_role.version</code>.
|
||||
*/
|
||||
public void setVersion(Integer value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>public.user_application_role.version</code>.
|
||||
*/
|
||||
public Integer getVersion() {
|
||||
return (Integer) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>public.user_application_role.deleted</code>. Дата и
|
||||
* время окончания действия роли
|
||||
*/
|
||||
public void setDeleted(Timestamp value) {
|
||||
set(8, value);
|
||||
set(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -155,7 +127,35 @@ public class UserApplicationRoleRecord extends UpdatableRecordImpl<UserApplicati
|
|||
* время окончания действия роли
|
||||
*/
|
||||
public Timestamp getDeleted() {
|
||||
return (Timestamp) get(8);
|
||||
return (Timestamp) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>public.user_application_role.active</code>.
|
||||
*/
|
||||
public void setActive(Boolean value) {
|
||||
set(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>public.user_application_role.active</code>.
|
||||
*/
|
||||
public Boolean getActive() {
|
||||
return (Boolean) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>public.user_application_role.version</code>.
|
||||
*/
|
||||
public void setVersion(Integer value) {
|
||||
set(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>public.user_application_role.version</code>.
|
||||
*/
|
||||
public Integer getVersion() {
|
||||
return (Integer) get(8);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
@ -181,7 +181,7 @@ public class UserApplicationRoleRecord extends UpdatableRecordImpl<UserApplicati
|
|||
/**
|
||||
* Create a detached, initialised UserApplicationRoleRecord
|
||||
*/
|
||||
public UserApplicationRoleRecord(String userRoleId, String roleName, Timestamp created, Timestamp updated, String roleCode, Boolean adminRole, Boolean active, Integer version, Timestamp deleted) {
|
||||
public UserApplicationRoleRecord(String userRoleId, String roleName, Timestamp created, Timestamp updated, String roleCode, Boolean adminRole, Timestamp deleted, Boolean active, Integer version) {
|
||||
super(UserApplicationRole.USER_APPLICATION_ROLE);
|
||||
|
||||
setUserRoleId(userRoleId);
|
||||
|
|
@ -190,9 +190,9 @@ public class UserApplicationRoleRecord extends UpdatableRecordImpl<UserApplicati
|
|||
setUpdated(updated);
|
||||
setRoleCode(roleCode);
|
||||
setAdminRole(adminRole);
|
||||
setDeleted(deleted);
|
||||
setActive(active);
|
||||
setVersion(version);
|
||||
setDeleted(deleted);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
|
||||
|
||||
<changeSet id="0001" author="gulnaz">
|
||||
<comment>add blocked_region column to user_application_list table</comment>
|
||||
<sql>
|
||||
ALTER TABLE user_application_list ADD COLUMN IF NOT EXISTS blocked_region varchar(7);
|
||||
COMMENT ON COLUMN user_application_list.blocked_region IS 'Заблокированная область (ACCOUNT, PERSON или BOTH)';
|
||||
</sql>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
|
@ -25,4 +25,5 @@
|
|||
<include file="20250605_SUPPORT-9212_reconcile.xml" relativeToChangelogFile="true"/>
|
||||
<include file="20250618_add_active_column.xml" relativeToChangelogFile="true"/>
|
||||
<include file="20250704_drop_column.xml" relativeToChangelogFile="true"/>
|
||||
<include file="20250801-SUPPORT-9296_add_blocked_region.xml" relativeToChangelogFile="true"/>
|
||||
</databaseChangeLog>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue