SUPPORT-9212: Поправил db бины

This commit is contained in:
adel.ka 2025-06-07 21:04:45 +03:00
parent 247828e87b
commit 603322a301
3 changed files with 0 additions and 112 deletions

View file

@ -4,7 +4,6 @@
package ru.micord.webbpm.ervu.business_metrics.db_beans.idm_reconcile;
import org.jooq.ForeignKey;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
@ -41,10 +40,4 @@ public class Keys {
public static final UniqueKey<DomainRecord> DOMAIN_PKEY = Internal.createUniqueKey(Domain.DOMAIN, DSL.name("domain_pkey"), new TableField[] { Domain.DOMAIN.ID }, true);
public static final UniqueKey<PersonRecord> PERSON_PKEY = Internal.createUniqueKey(Person.PERSON, DSL.name("person_pkey"), new TableField[] { Person.PERSON.ID }, true);
public static final UniqueKey<RoleRecord> ROLE_PKEY = Internal.createUniqueKey(Role.ROLE, DSL.name("role_pkey"), new TableField[] { Role.ROLE.ID }, true);
// -------------------------------------------------------------------------
// FOREIGN KEY definitions
// -------------------------------------------------------------------------
public static final ForeignKey<AccountRoleRecord, AccountRecord> ACCOUNT_ROLE__FK_ACCOUNT_ROLE_ACCOUNT = Internal.createForeignKey(AccountRole.ACCOUNT_ROLE, DSL.name("fk_account_role_account"), new TableField[] { AccountRole.ACCOUNT_ROLE.ACCOUNT_ID }, Keys.ACCOUNT_PKEY, new TableField[] { Account.ACCOUNT.ID }, true);
}

View file

@ -8,13 +8,9 @@ import java.util.Collection;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.InverseForeignKey;
import org.jooq.Name;
import org.jooq.Path;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
import org.jooq.Record;
import org.jooq.SQL;
import org.jooq.Schema;
import org.jooq.Select;
@ -29,7 +25,6 @@ import org.jooq.impl.TableImpl;
import ru.micord.webbpm.ervu.business_metrics.db_beans.idm_reconcile.IdmReconcile;
import ru.micord.webbpm.ervu.business_metrics.db_beans.idm_reconcile.Keys;
import ru.micord.webbpm.ervu.business_metrics.db_beans.idm_reconcile.tables.AccountRole.AccountRolePath;
import ru.micord.webbpm.ervu.business_metrics.db_beans.idm_reconcile.tables.records.AccountRecord;
@ -169,37 +164,6 @@ public class Account extends TableImpl<AccountRecord> {
this(DSL.name("account"), null);
}
public <O extends Record> Account(Table<O> path, ForeignKey<O, AccountRecord> childPath, InverseForeignKey<O, AccountRecord> parentPath) {
super(path, childPath, parentPath, ACCOUNT);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class AccountPath extends Account implements Path<AccountRecord> {
public <O extends Record> AccountPath(Table<O> path, ForeignKey<O, AccountRecord> childPath, InverseForeignKey<O, AccountRecord> parentPath) {
super(path, childPath, parentPath);
}
private AccountPath(Name alias, Table<AccountRecord> aliased) {
super(alias, aliased);
}
@Override
public AccountPath as(String alias) {
return new AccountPath(DSL.name(alias), this);
}
@Override
public AccountPath as(Name alias) {
return new AccountPath(alias, this);
}
@Override
public AccountPath as(Table<?> alias) {
return new AccountPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : IdmReconcile.IDM_RECONCILE;
@ -210,19 +174,6 @@ public class Account extends TableImpl<AccountRecord> {
return Keys.ACCOUNT_PKEY;
}
private transient AccountRolePath _accountRole;
/**
* Get the implicit to-many join path to the
* <code>idm_reconcile.account_role</code> table
*/
public AccountRolePath accountRole() {
if (_accountRole == null)
_accountRole = new AccountRolePath(this, null, Keys.ACCOUNT_ROLE__FK_ACCOUNT_ROLE_ACCOUNT.getInverseKey());
return _accountRole;
}
@Override
public Account as(String alias) {
return new Account(DSL.name(alias), this);

View file

@ -4,19 +4,13 @@
package ru.micord.webbpm.ervu.business_metrics.db_beans.idm_reconcile.tables;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.InverseForeignKey;
import org.jooq.Name;
import org.jooq.Path;
import org.jooq.PlainSQL;
import org.jooq.QueryPart;
import org.jooq.Record;
import org.jooq.SQL;
import org.jooq.Schema;
import org.jooq.Select;
@ -31,7 +25,6 @@ import org.jooq.impl.TableImpl;
import ru.micord.webbpm.ervu.business_metrics.db_beans.idm_reconcile.IdmReconcile;
import ru.micord.webbpm.ervu.business_metrics.db_beans.idm_reconcile.Keys;
import ru.micord.webbpm.ervu.business_metrics.db_beans.idm_reconcile.tables.Account.AccountPath;
import ru.micord.webbpm.ervu.business_metrics.db_beans.idm_reconcile.tables.records.AccountRoleRecord;
@ -97,37 +90,6 @@ public class AccountRole extends TableImpl<AccountRoleRecord> {
this(DSL.name("account_role"), null);
}
public <O extends Record> AccountRole(Table<O> path, ForeignKey<O, AccountRoleRecord> childPath, InverseForeignKey<O, AccountRoleRecord> parentPath) {
super(path, childPath, parentPath, ACCOUNT_ROLE);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class AccountRolePath extends AccountRole implements Path<AccountRoleRecord> {
public <O extends Record> AccountRolePath(Table<O> path, ForeignKey<O, AccountRoleRecord> childPath, InverseForeignKey<O, AccountRoleRecord> parentPath) {
super(path, childPath, parentPath);
}
private AccountRolePath(Name alias, Table<AccountRoleRecord> aliased) {
super(alias, aliased);
}
@Override
public AccountRolePath as(String alias) {
return new AccountRolePath(DSL.name(alias), this);
}
@Override
public AccountRolePath as(Name alias) {
return new AccountRolePath(alias, this);
}
@Override
public AccountRolePath as(Table<?> alias) {
return new AccountRolePath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : IdmReconcile.IDM_RECONCILE;
@ -138,24 +100,6 @@ public class AccountRole extends TableImpl<AccountRoleRecord> {
return Keys.PK_ACCOUNT_ROLE;
}
@Override
public List<ForeignKey<AccountRoleRecord, ?>> getReferences() {
return Arrays.asList(Keys.ACCOUNT_ROLE__FK_ACCOUNT_ROLE_ACCOUNT);
}
private transient AccountPath _account;
/**
* Get the implicit join path to the <code>idm_reconcile.account</code>
* table.
*/
public AccountPath account() {
if (_account == null)
_account = new AccountPath(this, Keys.ACCOUNT_ROLE__FK_ACCOUNT_ROLE_ACCOUNT, null);
return _account;
}
@Override
public AccountRole as(String alias) {
return new AccountRole(DSL.name(alias), this);