добавил оквед на страницу организации
This commit is contained in:
parent
42a7b6e363
commit
b716ce44fa
6 changed files with 625 additions and 41 deletions
|
|
@ -5,7 +5,9 @@ package ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_;
|
|||
|
||||
|
||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.InteractionLog;
|
||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OrgOkved;
|
||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.records.InteractionLogRecord;
|
||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.records.OrgOkvedRecord;
|
||||
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
|
|
@ -25,4 +27,5 @@ public class Keys {
|
|||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final UniqueKey<InteractionLogRecord> INTERACTION_LOG_PKEY = Internal.createUniqueKey(InteractionLog.INTERACTION_LOG, DSL.name("interaction_log_pkey"), new TableField[] { InteractionLog.INTERACTION_LOG.ID }, true);
|
||||
public static final UniqueKey<OrgOkvedRecord> ORG_OKVED_PKEY = Internal.createUniqueKey(OrgOkved.ORG_OKVED, DSL.name("org_okved_pkey"), new TableField[] { OrgOkved.ORG_OKVED.ID }, true);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,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.InteractionLog;
|
||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OrgOkved;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
|
@ -33,6 +34,11 @@ public class Public extends SchemaImpl {
|
|||
*/
|
||||
public final InteractionLog INTERACTION_LOG = InteractionLog.INTERACTION_LOG;
|
||||
|
||||
/**
|
||||
* The table <code>public.org_okved</code>.
|
||||
*/
|
||||
public final OrgOkved ORG_OKVED = OrgOkved.ORG_OKVED;
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
|
|
@ -49,7 +55,8 @@ public class Public extends SchemaImpl {
|
|||
@Override
|
||||
public final List<Table<?>> getTables() {
|
||||
return Arrays.asList(
|
||||
InteractionLog.INTERACTION_LOG
|
||||
InteractionLog.INTERACTION_LOG,
|
||||
OrgOkved.ORG_OKVED
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ package ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_;
|
|||
|
||||
|
||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.InteractionLog;
|
||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.OrgOkved;
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -17,4 +18,9 @@ public class Tables {
|
|||
* The table <code>public.interaction_log</code>.
|
||||
*/
|
||||
public static final InteractionLog INTERACTION_LOG = InteractionLog.INTERACTION_LOG;
|
||||
|
||||
/**
|
||||
* The table <code>public.org_okved</code>.
|
||||
*/
|
||||
public static final OrgOkved ORG_OKVED = OrgOkved.ORG_OKVED;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,244 @@
|
|||
/*
|
||||
* 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_.Keys;
|
||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.Public;
|
||||
import ervu_lkrp_ul.ervu_lkrp_ul.db_beans.public_.tables.records.OrgOkvedRecord;
|
||||
|
||||
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.UniqueKey;
|
||||
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 OrgOkved extends TableImpl<OrgOkvedRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>public.org_okved</code>
|
||||
*/
|
||||
public static final OrgOkved ORG_OKVED = new OrgOkved();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<OrgOkvedRecord> getRecordType() {
|
||||
return OrgOkvedRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>public.org_okved.id</code>.
|
||||
*/
|
||||
public final TableField<OrgOkvedRecord, Long> ID = createField(DSL.name("id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>public.org_okved.code</code>.
|
||||
*/
|
||||
public final TableField<OrgOkvedRecord, String> CODE = createField(DSL.name("code"), SQLDataType.VARCHAR(7), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>public.org_okved.okved</code>.
|
||||
*/
|
||||
public final TableField<OrgOkvedRecord, String> OKVED = createField(DSL.name("okved"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>public.org_okved.organization</code>.
|
||||
*/
|
||||
public final TableField<OrgOkvedRecord, String> ORGANIZATION = createField(DSL.name("organization"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>public.org_okved.main_okved</code>.
|
||||
*/
|
||||
public final TableField<OrgOkvedRecord, Boolean> MAIN_OKVED = createField(DSL.name("main_okved"), SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
private OrgOkved(Name alias, Table<OrgOkvedRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private OrgOkved(Name alias, Table<OrgOkvedRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>public.org_okved</code> table reference
|
||||
*/
|
||||
public OrgOkved(String alias) {
|
||||
this(DSL.name(alias), ORG_OKVED);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>public.org_okved</code> table reference
|
||||
*/
|
||||
public OrgOkved(Name alias) {
|
||||
this(alias, ORG_OKVED);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>public.org_okved</code> table reference
|
||||
*/
|
||||
public OrgOkved() {
|
||||
this(DSL.name("org_okved"), null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Public.PUBLIC;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<OrgOkvedRecord, Long> getIdentity() {
|
||||
return (Identity<OrgOkvedRecord, Long>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<OrgOkvedRecord> getPrimaryKey() {
|
||||
return Keys.ORG_OKVED_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrgOkved as(String alias) {
|
||||
return new OrgOkved(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrgOkved as(Name alias) {
|
||||
return new OrgOkved(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrgOkved as(Table<?> alias) {
|
||||
return new OrgOkved(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public OrgOkved rename(String name) {
|
||||
return new OrgOkved(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public OrgOkved rename(Name name) {
|
||||
return new OrgOkved(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public OrgOkved rename(Table<?> name) {
|
||||
return new OrgOkved(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public OrgOkved where(Condition condition) {
|
||||
return new OrgOkved(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public OrgOkved where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public OrgOkved where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public OrgOkved where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public OrgOkved where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public OrgOkved where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public OrgOkved where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public OrgOkved where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public OrgOkved whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public OrgOkved whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,124 @@
|
|||
/*
|
||||
* 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.OrgOkved;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class OrgOkvedRecord extends UpdatableRecordImpl<OrgOkvedRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>public.org_okved.id</code>.
|
||||
*/
|
||||
public void setId(Long value) {
|
||||
set(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>public.org_okved.id</code>.
|
||||
*/
|
||||
public Long getId() {
|
||||
return (Long) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>public.org_okved.code</code>.
|
||||
*/
|
||||
public void setCode(String value) {
|
||||
set(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>public.org_okved.code</code>.
|
||||
*/
|
||||
public String getCode() {
|
||||
return (String) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>public.org_okved.okved</code>.
|
||||
*/
|
||||
public void setOkved(String value) {
|
||||
set(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>public.org_okved.okved</code>.
|
||||
*/
|
||||
public String getOkved() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>public.org_okved.organization</code>.
|
||||
*/
|
||||
public void setOrganization(String value) {
|
||||
set(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>public.org_okved.organization</code>.
|
||||
*/
|
||||
public String getOrganization() {
|
||||
return (String) get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>public.org_okved.main_okved</code>.
|
||||
*/
|
||||
public void setMainOkved(Boolean value) {
|
||||
set(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>public.org_okved.main_okved</code>.
|
||||
*/
|
||||
public Boolean getMainOkved() {
|
||||
return (Boolean) get(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Long> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached OrgOkvedRecord
|
||||
*/
|
||||
public OrgOkvedRecord() {
|
||||
super(OrgOkved.ORG_OKVED);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised OrgOkvedRecord
|
||||
*/
|
||||
public OrgOkvedRecord(Long id, String code, String okved, String organization, Boolean mainOkved) {
|
||||
super(OrgOkved.ORG_OKVED);
|
||||
|
||||
setId(id);
|
||||
setCode(code);
|
||||
setOkved(okved);
|
||||
setOrganization(organization);
|
||||
setMainOkved(mainOkved);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue