first commit

This commit is contained in:
Булат Хайруллин 2024-11-20 16:17:13 +03:00
commit bfa87a5f9b
967 changed files with 188027 additions and 0 deletions

67
.gitignore vendored Normal file
View file

@ -0,0 +1,67 @@
#ignore target dir
target*/
#gradle files
.gradle*/
*.orig
#
# Eclipse project files
#
#.classpath
#.project
#.settings*/
.springBeans
.metadata/
war*/
#
# IntelliJ IDEA project files
#
.idea*/
.classes*/
*.ipr
*.iml
*.iws
*.ids
atlassian-ide-plugin.xml
#ignore NetBeans project files
nb-configuration.xml
profiles.xml
catalog.xml
nbactions.xml
#ignore some temporary files
*.vpp~*
# os meta files
Thumbs.db
.DS_Store
pom.xml.versionsBackup
*.jasper
#studio
.studio*/
resources/src/main/generated-resources*/
resources/src/main/resources/database/database_structure.xml
frontend/build*/
frontend/tmp*/
frontend/.angular*/
frontend/build_dev*/
frontend/dist*/
frontend/node_modules*/
frontend/src/ts/**/*.js
frontend/src/ts/**/*.js.map
frontend/src/ts/**/*.ngsummary.json
frontend/src/ts/aot*/
frontend/src/ts/generated*/
npm-debug.log
#Sublime project files
*.sublime-project
*.sublime-workspace

29
.studioignore Normal file
View file

@ -0,0 +1,29 @@
#Files for Webbpm-Studio to ignore
frontend/build/
frontend/build_dev/
frontend/dist/
frontend/node_modules/
frontend/src/ts/page.routing.ts
frontend/src/ts/generated-sources/
frontend/src/ts/generated/
frontend/target/
backend/target/
backend/src/main/generated-sources/
distribution/target/
resources/target/
test/
extensions/
config/
target/
themes/
.studio/
.git/
.idea/
.studioignore
**.js

224
README.md Normal file
View file

@ -0,0 +1,224 @@
# Создание БД проекта
Создание роли для основной схемы БД проекта
```
CREATE ROLE "<your-project-main-role>" WITH
LOGIN
NOSUPERUSER
INHERIT
NOCREATEDB
NOCREATEROLE
NOREPLICATION
PASSWORD '<your password>';
```
Создание роли для схемы безопасности БД проекта
```
CREATE ROLE "<your-project-security-role>" WITH
LOGIN
NOSUPERUSER
INHERIT
NOCREATEDB
NOCREATEROLE
NOREPLICATION
PASSWORD '<your password>';
```
Создание БД проекта
```
CREATE DATABASE "<your-project-db>"
WITH
OWNER = "<your-project-main-role>";
```
ВНИМАНИЕ: в общем случае, отдельную БД для безопасности создавать не нужно. В конфигурации источника данных security-ds в файле standalone.xml в качестве имени базы данных используйте базу данных приложения.
Предоставление необходимых прав для роли &lt;your-project-security-role&gt;
```
GRANT CREATE ON DATABASE "<your-project-db>" TO "<your-project-security-role>";
```
Создание таблицы shedlock для автосинхронизации
```
CREATE TABLE shedlock
(
name varchar not null
constraint tasks_lock_pkey
primary key,
lock_until timestamp,
locked_at timestamp,
locked_by varchar
);
comment on table shedlock is 'Таблица для синхронизации выполнения запланированных задач между нодами.';
ALTER TABLE shedlock
OWNER to "owner";
```
## Дополнительные ограничения базы секьюрити
Логин пользователя &lt;user_account.username&gt; и имена ролей &lt;user_role.name&gt; не должны совпадать, так как в ходе работы jbpm-а они сохраняются в одну и ту же таблицу.
Пример ошибки при совпадении: username = 'qa_test' и role_name = 'qa_test' (роль привязана к этому пользователю). Ошибка возникает при запуске любого процесса под этим пользователем.
```
ERROR [errorhandling.ExceptionHandlerController] (default task-5) [19usm9-bgyi63]
Organizational entity already exists with [GroupImpl:'qa_test'] id,
please check that there is no group and user with same id:
java.lang.RuntimeException: Organizational entity already exists with [GroupImpl:'qa_test'] id,
please check that there is no group and user with same id
```
## Создание нового администратора
Создайте группу &lt;your-admin-group&gt; и предоставьте ей права в модуль администрирования. Для этого выполните в БД проекта
```
INSERT INTO security.user_group(
user_group_id, name, access_level_id)
(SELECT uuid_in(md5(random()::text || clock_timestamp()::text)::cstring),
'<your-admin-group>', access_level_id FROM security.access_level where level=999);
```
```
INSERT INTO security.link_user_group_user_role(
link_user_group_user_role_id, user_group_id, user_role_id)
(SELECT uuid_in(md5(random()::text || clock_timestamp()::text)::cstring),
(SELECT user_group_id FROM security.user_group WHERE name = '<your-admin-group>'),
(SELECT user_role_id FROM security.user_role WHERE name = 'Security - User Admin'));
```
```
INSERT INTO security.link_user_group_user_role(
link_user_group_user_role_id, user_group_id, user_role_id)
(SELECT uuid_in(md5(random()::text || clock_timestamp()::text)::cstring),
(SELECT user_group_id FROM security.user_group WHERE name = '<your-admin-group>'),
(SELECT user_role_id FROM security.user_role WHERE name = 'Security - Group Admin'));
```
```
INSERT INTO security.link_user_group_user_role(
link_user_group_user_role_id, user_group_id, user_role_id)
(SELECT uuid_in(md5(random()::text || clock_timestamp()::text)::cstring),
(SELECT user_group_id FROM security.user_group WHERE name = '<your-admin-group>'),
(SELECT user_role_id FROM security.user_role WHERE name = 'Security - Role Admin'));
```
# Настройка браузера для входа в систему с помощью Kerberos
1. Запустите браузер firefox.
2. В адресной строке введите about:config, нажать кнопку "я принимаю на себя риск"
3. С помощью поиска найдите параметр network.negotiate-auth.trusted-uris и в качестве значения ввести домен(например для домена example.com надо ввести .example.com)
4. Откройте в браузере приложение. Пример http://app.example.com/ . Приложение должно открыться без запроса логина/пароля
# Восстановление структуры БД
На основе БД проекта с помощью jOOQ генерируются Java классы для каждого объекта БД. Это происходит по нажатию кнопки Обновить на панели БД в студии. При необходимости можно сформировать DDL на основе данных классов. Пример класса для генерации DDL
```
package ru.cg.webbpm.test_project.db_beans;
import org.jooq.*;
import org.jooq.impl.*;
public class Main {
public static void main (String args []) {
DefaultConfiguration defaultConfiguration = new DefaultConfiguration();
defaultConfiguration.setSQLDialect(SQLDialect.POSTGRES);
Queries ddl = DSL.using(defaultConfiguration).ddl(DefaultCatalog.DEFAULT_CATALOG);
for (Query query : ddl.queries()) {
System.out.println(query);
}
}
}
```
** ВНИМАНИЕ: **
- этим способом нельзя восстановить функции/процедуры БД
см. также [https://www.jooq.org/doc/latest/manual/sql-building/ddl-statements/generating-ddl/](https://www.jooq.org/doc/latest/manual/sql-building/ddl-statements/generating-ddl/)
# Сборка проекта
## В dev режиме
```bash
mvn clean && mvn package
```
## В prod режиме
```bash
mvn clean && mvn package -Pprod -DngcCoreCount=4 -DpagePackSizeMb=24
```
ngcCoreCount - количество ядер, выделяемых процессу компиляции ngc. По умолчанию - количество ядер - 1
pagePackSizeMb - размер пачки в МБ. По умолчанию - количество ядер - 24 МБ.
## С обновлением database beans
```bash
mvn clean && mvn package -Dwebbpm.generate-db-beans
```
# Версия проекта
Если версия проекта содержит SNAPSHOT (например 1.0-SNAPSHOT), то при установке такой версии на сервере приложений будет запущена процедура остановки запущенных процессов данной версии. Этот режим удобен при отладке процесса на рабочем месте аналитика.
На боевом и тестовом стенде необходимо передавать дистрибутив проекта, с версией, которая не содержит SNAPSHOT. Например - 1.0
# Обновление платформы
## Обновления версии платформы
### С помощью студии
1. Откройте проект в студии. Версия платформы обновится автоматически
### Вручную
1. Обновите значение webbpm-platform.version в pom.xml. Пример
```xml
<webbpm-platform.version>3.164.0-SNAPSHOT</webbpm-platform.version>
```
## Обновление базового пакета компонент
### С помощью студии
1. Откройте проект в студии.
2. Откройте меню "Проект - Пакеты"
3. Нажмите обновить.
### Вручную
#### Из удаленного репозитория
```bash
mvn webbpm:update-package -DpackageVersion="3.158.8"
```
#### Из файла
```bash
mvn webbpm:update-package -DexecuteNpmInstall=false -Dpath=resources-<your-version>.jar
```
#### Руками
1. Измените версию платформы и backend модуля в файле [pom.xml](pom.xml) вашего проекта на нужную версию
2. Скопируйте ресурсы
```
из директории: webbpm-platform\components\resources\target\classes\
в директорию: {your-project}\packages\ru.cg.webbpm.packages.base.resources\
```
3. Скопируйте фронт
```
из директории: webbpm-platform\components\frontend\dist
в директорию: {your-project}\frontend\node_modules\@webbpm\base-package\
```
4. Запретите выполнение npm install при запуске студии. Для этого добавьте параметр `-DexecuteNpmInstall=false` в настройках Run/Debug Configurations студии

296
backend/pom.xml Normal file
View file

@ -0,0 +1,296 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ervu_usr_autority</groupId>
<artifactId>ervu_usr_autority</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<groupId>ervu_usr_autority.ervu_usr_autority</groupId>
<artifactId>backend</artifactId>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>ervu_usr_autority.ervu_usr_autority</groupId>
<artifactId>resources</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.reporting.reporting-jasper</groupId>
<artifactId>reporting-jasper-fonts</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.ocpsoft.prettytime</groupId>
<artifactId>prettytime</artifactId>
</dependency>
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules</groupId>
<artifactId>inject</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules</groupId>
<artifactId>webkit-rpc</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules</groupId>
<artifactId>webkit-beans</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.core</groupId>
<artifactId>core-runtime-api</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.resources</groupId>
<artifactId>resources-api</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.core</groupId>
<artifactId>error-handling-api</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.database</groupId>
<artifactId>database-api</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.database</groupId>
<artifactId>database-impl</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.jndi</groupId>
<artifactId>jndi-beans</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.jndi</groupId>
<artifactId>jndi-inject</artifactId>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.database</groupId>
<artifactId>database-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules</groupId>
<artifactId>standard-annotations</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.security</groupId>
<artifactId>security-beans</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.security</groupId>
<artifactId>security-api</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.security</groupId>
<artifactId>security-esia</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.reporting</groupId>
<artifactId>reporting-api</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.reporting</groupId>
<artifactId>reporting-runtime-api</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.reporting</groupId>
<artifactId>reporting-runtime-impl</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.reporting.reporting-jasper</groupId>
<artifactId>reporting-jasper-impl</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.reporting.reporting-jasper</groupId>
<artifactId>reporting-jasper-runtime-impl</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.reporting.reporting-xdoc</groupId>
<artifactId>reporting-xdoc-impl</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.reporting.reporting-xdoc</groupId>
<artifactId>reporting-xdoc-runtime-impl</artifactId>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules</groupId>
<artifactId>webkit-base</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.security</groupId>
<artifactId>security-db-synchronization-api</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.modules.security</groupId>
<artifactId>security-db-synchronization-ldap-impl</artifactId>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>ru.micord.fias</groupId>
<artifactId>client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security.kerberos</groupId>
<artifactId>spring-security-kerberos-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security.kerberos</groupId>
<artifactId>spring-security-kerberos-web</artifactId>
</dependency>
<dependency>
<groupId>org.mnode.ical4j</groupId>
<artifactId>ical4j</artifactId>
</dependency>
<dependency>
<groupId>net.javacrumbs.shedlock</groupId>
<artifactId>shedlock-spring</artifactId>
</dependency>
<dependency>
<groupId>net.javacrumbs.shedlock</groupId>
<artifactId>shedlock-provider-jdbc-template</artifactId>
</dependency>
<dependency>
<groupId>ru.cg.webbpm.packages.base</groupId>
<artifactId>backend</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.parent.artifactId}</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<useIncrementalCompilation>false</useIncrementalCompilation>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
<release>17</release>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.basedir}/target/generated-sources/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>studio</id>
<dependencies>
<dependency>
<groupId>ru.cg.webbpm.modules.resources</groupId>
<artifactId>resources-impl-development</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>dev</id>
<dependencies>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
</project>

View file

@ -0,0 +1,65 @@
import java.time.Duration;
import javax.sql.DataSource;
import net.javacrumbs.shedlock.core.LockProvider;
import net.javacrumbs.shedlock.provider.jdbctemplate.JdbcTemplateLockProvider;
import net.javacrumbs.shedlock.spring.ScheduledLockConfiguration;
import net.javacrumbs.shedlock.spring.ScheduledLockConfigurationBuilder;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
/**
* Root application context
* This context imports XML configs from all the other jars, and is created by {@link WebAppInitializer}
* NB: modules are excluded from component scan since spring-context.xml sometimes holds important parameters and / or annotations
* @author krylov
*/
@Configuration
@ComponentScan(basePackages = {
"service",
"dao",
"bpmn",
"i18n",
"errorhandling",
"database",
"security",
"component.addresses",
"gen",
"ru.cg",
"ru.micord"
})
@EnableAspectJAutoProxy(proxyTargetClass = true)
@EnableWebMvc
@EnableScheduling
public class AppConfig {
@Bean
public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer(){
return new PropertySourcesPlaceholderConfigurer();
}
@Bean
public ScheduledLockConfiguration taskScheduler(LockProvider lockProvider) {
ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();
scheduler.setPoolSize(12);
scheduler.initialize();
return ScheduledLockConfigurationBuilder
.withLockProvider(lockProvider)
.withTaskScheduler(scheduler)
.withDefaultLockAtMostFor(Duration.ofHours(4))
.build();
}
@Bean
public LockProvider lockProvider(@Qualifier("datasource") DataSource dataSource) {
return new JdbcTemplateLockProvider(dataSource);
}
}

View file

@ -0,0 +1,31 @@
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
import org.springframework.web.util.IntrospectorCleanupListener;
/**
* This initializer creates root context and registers dispatcher servlet
* Spring scans for initializers automatically
*/
public class WebAppInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
public void onStartup(ServletContext servletContext) throws ServletException {
super.onStartup(servletContext);
servletContext.addListener(new IntrospectorCleanupListener());
}
protected String[] getServletMappings() {
return new String[]{"/"};
}
@Override
protected Class<?>[] getRootConfigClasses() {
return new Class[]{AppConfig.class};
}
@Override
protected Class<?>[] getServletConfigClasses() {
return new Class[0];
}
}

View file

@ -0,0 +1,38 @@
package ervu_usr_autority;
import java.util.HashMap;
import java.util.Map;
import property.grid.Formatter;
/**
* @author ilyin on 06.10.2024.
*/
public class EnumColumnFormatter implements Formatter {
private static final Map<String, String> strObjectToStringMapping = new HashMap<>();
static {
strObjectToStringMapping.put("CREATED", "Новая");
strObjectToStringMapping.put("AGREED", "Согласована");
strObjectToStringMapping.put("ACCEPTED", "Выполнена");
strObjectToStringMapping.put("UNLOADED", "Выгружена");
strObjectToStringMapping.put("IN_PROGRESS", "В работе");
strObjectToStringMapping.put("LOGIN_PASSWORD_ISSUED", "Выдан логин и пароль");
strObjectToStringMapping.put("CANCEL_BY_CREATOR", "Отклонена");
strObjectToStringMapping.put("CANCEL_BY_PROCESSOR", "Отклонена");
strObjectToStringMapping.put("CANCEL_BY_AGREEER", "Отклонена");
strObjectToStringMapping.put("CREATE_USER", "Создание пользователя");
strObjectToStringMapping.put("EDIT_USER", "Изменение пользователя");
strObjectToStringMapping.put("BLOCK_USER", "Блокировка пользователя");
strObjectToStringMapping.put("MALE", "Мужской");
strObjectToStringMapping.put("FEMALE", "Женский");
}
@Override
public String format(final Object object) {
String strType = String.valueOf(object);
return strObjectToStringMapping.getOrDefault(strType, "");
}
}

View file

@ -0,0 +1,63 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import java.util.Arrays;
import java.util.List;
import org.jooq.Constants;
import org.jooq.Schema;
import org.jooq.impl.CatalogImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DefaultCatalog extends CatalogImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>DEFAULT_CATALOG</code>
*/
public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog();
/**
* The schema <code>public</code>.
*/
public final Public PUBLIC = Public.PUBLIC;
/**
* The schema <code>security</code>.
*/
public final Security SECURITY = Security.SECURITY;
/**
* No further instances allowed
*/
private DefaultCatalog() {
super("");
}
@Override
public final List<Schema> getSchemas() {
return Arrays.asList(
Public.PUBLIC,
Security.SECURITY
);
}
/**
* A reference to the 3.19 minor release of the code generator. If this
* doesn't compile, it's because the runtime library uses an older minor
* release, namely: 3.19. You can turn off the generation of this reference
* by specifying /configuration/generator/generate/jooqVersionReference
*/
private static final String REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_19;
}

View file

@ -0,0 +1,52 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.JobPosition;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.LinkUserApplicationUserGroup;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.Recruitment;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.UserApplicationDocument;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.UserApplicationList;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records.JobPositionRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records.LinkUserApplicationUserGroupRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records.RecruitmentRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records.UserApplicationDocumentRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records.UserApplicationListRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserGroup;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserGroupRecord;
import org.jooq.ForeignKey;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.Internal;
/**
* A class modelling foreign key relationships and constraints of tables in
* public.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
public static final UniqueKey<JobPositionRecord> PK_JOB_POSITION = Internal.createUniqueKey(JobPosition.JOB_POSITION, DSL.name("pk_job_position"), new TableField[] { JobPosition.JOB_POSITION.JOB_POSITION_ID }, true);
public static final UniqueKey<LinkUserApplicationUserGroupRecord> PK_LINK_USER_APPLICATION_USER_GROUP = Internal.createUniqueKey(LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP, DSL.name("pk_link_user_application_user_group"), new TableField[] { LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP.LINK_USER_APPLICATION_USER_GROUP_ID }, true);
public static final UniqueKey<LinkUserApplicationUserGroupRecord> UNI_USER_GROUP = Internal.createUniqueKey(LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP, DSL.name("uni_user_group"), new TableField[] { LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP.USER_APPLICATION_LIST_ID, LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP.USER_GROUP_ID }, true);
public static final UniqueKey<RecruitmentRecord> RECRUITMENT_IDM_ID_KEY = Internal.createUniqueKey(Recruitment.RECRUITMENT, DSL.name("recruitment_idm_id_key"), new TableField[] { Recruitment.RECRUITMENT.IDM_ID }, true);
public static final UniqueKey<RecruitmentRecord> RECRUITMENT_PKEY = Internal.createUniqueKey(Recruitment.RECRUITMENT, DSL.name("recruitment_pkey"), new TableField[] { Recruitment.RECRUITMENT.ID }, true);
public static final UniqueKey<UserApplicationDocumentRecord> PK_USER_APPLICATION_DOCUMENT = Internal.createUniqueKey(UserApplicationDocument.USER_APPLICATION_DOCUMENT, DSL.name("pk_user_application_document"), new TableField[] { UserApplicationDocument.USER_APPLICATION_DOCUMENT.USER_APPLICATION_DOCUMENT_ID }, true);
public static final UniqueKey<UserApplicationListRecord> PK_USER_APPLICATION_LIST = Internal.createUniqueKey(UserApplicationList.USER_APPLICATION_LIST, DSL.name("pk_user_application_list"), new TableField[] { UserApplicationList.USER_APPLICATION_LIST.USER_APPLICATION_LIST_ID }, true);
// -------------------------------------------------------------------------
// FOREIGN KEY definitions
// -------------------------------------------------------------------------
public static final ForeignKey<LinkUserApplicationUserGroupRecord, UserApplicationListRecord> LINK_USER_APPLICATION_USER_GROUP__FK_USER_APPLICATION_LIST = Internal.createForeignKey(LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP, DSL.name("fk_user_application_list"), new TableField[] { LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP.USER_APPLICATION_LIST_ID }, Keys.PK_USER_APPLICATION_LIST, new TableField[] { UserApplicationList.USER_APPLICATION_LIST.USER_APPLICATION_LIST_ID }, true);
public static final ForeignKey<LinkUserApplicationUserGroupRecord, UserGroupRecord> LINK_USER_APPLICATION_USER_GROUP__FK_USER_GROUP = Internal.createForeignKey(LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP, DSL.name("fk_user_group"), new TableField[] { LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP.USER_GROUP_ID }, ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys.PK_GROUP, new TableField[] { UserGroup.USER_GROUP.USER_GROUP_ID }, true);
}

View file

@ -0,0 +1,91 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_;
import ervu_usr_autority.ervu_usr_autority.db_beans.DefaultCatalog;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.JobPosition;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.LinkUserApplicationUserGroup;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.Recruitment;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.UserApplicationDocument;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.UserApplicationList;
import java.util.Arrays;
import java.util.List;
import org.jooq.Catalog;
import org.jooq.Sequence;
import org.jooq.Table;
import org.jooq.impl.SchemaImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Public extends SchemaImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public</code>
*/
public static final Public PUBLIC = new Public();
/**
* The table <code>public.job_position</code>.
*/
public final JobPosition JOB_POSITION = JobPosition.JOB_POSITION;
/**
* The table <code>public.link_user_application_user_group</code>.
*/
public final LinkUserApplicationUserGroup LINK_USER_APPLICATION_USER_GROUP = LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP;
/**
* Военный комиссариат
*/
public final Recruitment RECRUITMENT = Recruitment.RECRUITMENT;
/**
* The table <code>public.user_application_document</code>.
*/
public final UserApplicationDocument USER_APPLICATION_DOCUMENT = UserApplicationDocument.USER_APPLICATION_DOCUMENT;
/**
* The table <code>public.user_application_list</code>.
*/
public final UserApplicationList USER_APPLICATION_LIST = UserApplicationList.USER_APPLICATION_LIST;
/**
* No further instances allowed
*/
private Public() {
super("public", null);
}
@Override
public Catalog getCatalog() {
return DefaultCatalog.DEFAULT_CATALOG;
}
@Override
public final List<Sequence<?>> getSequences() {
return Arrays.asList(
Sequences.LINK_USER_APPLICATION_USER_GR_LINK_USER_APPLICATION_USER_GR_SEQ
);
}
@Override
public final List<Table<?>> getTables() {
return Arrays.asList(
JobPosition.JOB_POSITION,
LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP,
Recruitment.RECRUITMENT,
UserApplicationDocument.USER_APPLICATION_DOCUMENT,
UserApplicationList.USER_APPLICATION_LIST
);
}
}

View file

@ -0,0 +1,285 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines.UuidGenerateV1;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines.UuidGenerateV1mc;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines.UuidGenerateV3;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines.UuidGenerateV4;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines.UuidGenerateV5;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines.UuidNil;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines.UuidNsDns;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines.UuidNsOid;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines.UuidNsUrl;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines.UuidNsX500;
import java.util.UUID;
import org.jooq.Configuration;
import org.jooq.Field;
/**
* Convenience access to all stored procedures and functions in public.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Routines {
/**
* Call <code>public.uuid_generate_v1</code>
*/
public static UUID uuidGenerateV1(
Configuration configuration
) {
UuidGenerateV1 f = new UuidGenerateV1();
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get <code>public.uuid_generate_v1</code> as a field.
*/
public static Field<UUID> uuidGenerateV1() {
UuidGenerateV1 f = new UuidGenerateV1();
return f.asField();
}
/**
* Call <code>public.uuid_generate_v1mc</code>
*/
public static UUID uuidGenerateV1mc(
Configuration configuration
) {
UuidGenerateV1mc f = new UuidGenerateV1mc();
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get <code>public.uuid_generate_v1mc</code> as a field.
*/
public static Field<UUID> uuidGenerateV1mc() {
UuidGenerateV1mc f = new UuidGenerateV1mc();
return f.asField();
}
/**
* Call <code>public.uuid_generate_v3</code>
*/
public static UUID uuidGenerateV3(
Configuration configuration
, UUID namespace
, String name
) {
UuidGenerateV3 f = new UuidGenerateV3();
f.setNamespace(namespace);
f.setName_(name);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get <code>public.uuid_generate_v3</code> as a field.
*/
public static Field<UUID> uuidGenerateV3(
UUID namespace
, String name
) {
UuidGenerateV3 f = new UuidGenerateV3();
f.setNamespace(namespace);
f.setName_(name);
return f.asField();
}
/**
* Get <code>public.uuid_generate_v3</code> as a field.
*/
public static Field<UUID> uuidGenerateV3(
Field<UUID> namespace
, Field<String> name
) {
UuidGenerateV3 f = new UuidGenerateV3();
f.setNamespace(namespace);
f.setName_(name);
return f.asField();
}
/**
* Call <code>public.uuid_generate_v4</code>
*/
public static UUID uuidGenerateV4(
Configuration configuration
) {
UuidGenerateV4 f = new UuidGenerateV4();
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get <code>public.uuid_generate_v4</code> as a field.
*/
public static Field<UUID> uuidGenerateV4() {
UuidGenerateV4 f = new UuidGenerateV4();
return f.asField();
}
/**
* Call <code>public.uuid_generate_v5</code>
*/
public static UUID uuidGenerateV5(
Configuration configuration
, UUID namespace
, String name
) {
UuidGenerateV5 f = new UuidGenerateV5();
f.setNamespace(namespace);
f.setName_(name);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get <code>public.uuid_generate_v5</code> as a field.
*/
public static Field<UUID> uuidGenerateV5(
UUID namespace
, String name
) {
UuidGenerateV5 f = new UuidGenerateV5();
f.setNamespace(namespace);
f.setName_(name);
return f.asField();
}
/**
* Get <code>public.uuid_generate_v5</code> as a field.
*/
public static Field<UUID> uuidGenerateV5(
Field<UUID> namespace
, Field<String> name
) {
UuidGenerateV5 f = new UuidGenerateV5();
f.setNamespace(namespace);
f.setName_(name);
return f.asField();
}
/**
* Call <code>public.uuid_nil</code>
*/
public static UUID uuidNil(
Configuration configuration
) {
UuidNil f = new UuidNil();
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get <code>public.uuid_nil</code> as a field.
*/
public static Field<UUID> uuidNil() {
UuidNil f = new UuidNil();
return f.asField();
}
/**
* Call <code>public.uuid_ns_dns</code>
*/
public static UUID uuidNsDns(
Configuration configuration
) {
UuidNsDns f = new UuidNsDns();
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get <code>public.uuid_ns_dns</code> as a field.
*/
public static Field<UUID> uuidNsDns() {
UuidNsDns f = new UuidNsDns();
return f.asField();
}
/**
* Call <code>public.uuid_ns_oid</code>
*/
public static UUID uuidNsOid(
Configuration configuration
) {
UuidNsOid f = new UuidNsOid();
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get <code>public.uuid_ns_oid</code> as a field.
*/
public static Field<UUID> uuidNsOid() {
UuidNsOid f = new UuidNsOid();
return f.asField();
}
/**
* Call <code>public.uuid_ns_url</code>
*/
public static UUID uuidNsUrl(
Configuration configuration
) {
UuidNsUrl f = new UuidNsUrl();
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get <code>public.uuid_ns_url</code> as a field.
*/
public static Field<UUID> uuidNsUrl() {
UuidNsUrl f = new UuidNsUrl();
return f.asField();
}
/**
* Call <code>public.uuid_ns_x500</code>
*/
public static UUID uuidNsX500(
Configuration configuration
) {
UuidNsX500 f = new UuidNsX500();
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get <code>public.uuid_ns_x500</code> as a field.
*/
public static Field<UUID> uuidNsX500() {
UuidNsX500 f = new UuidNsX500();
return f.asField();
}
}

View file

@ -0,0 +1,23 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_;
import org.jooq.Sequence;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
/**
* Convenience access to all sequences in public.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Sequences {
/**
* The sequence
* <code>public.link_user_application_user_gr_link_user_application_user_gr_seq</code>
*/
public static final Sequence<Long> LINK_USER_APPLICATION_USER_GR_LINK_USER_APPLICATION_USER_GR_SEQ = Internal.createSequence("link_user_application_user_gr_link_user_application_user_gr_seq", Public.PUBLIC, SQLDataType.BIGINT.nullable(false), null, null, null, null, false, null);
}

View file

@ -0,0 +1,44 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.JobPosition;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.LinkUserApplicationUserGroup;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.Recruitment;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.UserApplicationDocument;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.UserApplicationList;
/**
* Convenience access to all tables in public.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Tables {
/**
* The table <code>public.job_position</code>.
*/
public static final JobPosition JOB_POSITION = JobPosition.JOB_POSITION;
/**
* The table <code>public.link_user_application_user_group</code>.
*/
public static final LinkUserApplicationUserGroup LINK_USER_APPLICATION_USER_GROUP = LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP;
/**
* Военный комиссариат
*/
public static final Recruitment RECRUITMENT = Recruitment.RECRUITMENT;
/**
* The table <code>public.user_application_document</code>.
*/
public static final UserApplicationDocument USER_APPLICATION_DOCUMENT = UserApplicationDocument.USER_APPLICATION_DOCUMENT;
/**
* The table <code>public.user_application_list</code>.
*/
public static final UserApplicationList USER_APPLICATION_LIST = UserApplicationList.USER_APPLICATION_LIST;
}

View file

@ -0,0 +1,38 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import java.util.UUID;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UuidGenerateV1 extends AbstractRoutine<UUID> {
private static final long serialVersionUID = 1L;
/**
* The parameter <code>public.uuid_generate_v1.RETURN_VALUE</code>.
*/
public static final Parameter<UUID> RETURN_VALUE = Internal.createParameter("RETURN_VALUE", SQLDataType.UUID, false, false);
/**
* Create a new routine call instance
*/
public UuidGenerateV1() {
super("uuid_generate_v1", Public.PUBLIC, SQLDataType.UUID);
setReturnParameter(RETURN_VALUE);
}
}

View file

@ -0,0 +1,38 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import java.util.UUID;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UuidGenerateV1mc extends AbstractRoutine<UUID> {
private static final long serialVersionUID = 1L;
/**
* The parameter <code>public.uuid_generate_v1mc.RETURN_VALUE</code>.
*/
public static final Parameter<UUID> RETURN_VALUE = Internal.createParameter("RETURN_VALUE", SQLDataType.UUID, false, false);
/**
* Create a new routine call instance
*/
public UuidGenerateV1mc() {
super("uuid_generate_v1mc", Public.PUBLIC, SQLDataType.UUID);
setReturnParameter(RETURN_VALUE);
}
}

View file

@ -0,0 +1,81 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import java.util.UUID;
import org.jooq.Field;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UuidGenerateV3 extends AbstractRoutine<UUID> {
private static final long serialVersionUID = 1L;
/**
* The parameter <code>public.uuid_generate_v3.RETURN_VALUE</code>.
*/
public static final Parameter<UUID> RETURN_VALUE = Internal.createParameter("RETURN_VALUE", SQLDataType.UUID, false, false);
/**
* The parameter <code>public.uuid_generate_v3.namespace</code>.
*/
public static final Parameter<UUID> NAMESPACE = Internal.createParameter("namespace", SQLDataType.UUID, false, false);
/**
* The parameter <code>public.uuid_generate_v3.name</code>.
*/
public static final Parameter<String> NAME = Internal.createParameter("name", SQLDataType.CLOB, false, false);
/**
* Create a new routine call instance
*/
public UuidGenerateV3() {
super("uuid_generate_v3", Public.PUBLIC, SQLDataType.UUID);
setReturnParameter(RETURN_VALUE);
addInParameter(NAMESPACE);
addInParameter(NAME);
}
/**
* Set the <code>namespace</code> parameter IN value to the routine
*/
public void setNamespace(UUID value) {
setValue(NAMESPACE, value);
}
/**
* Set the <code>namespace</code> parameter to the function to be used with
* a {@link org.jooq.Select} statement
*/
public void setNamespace(Field<UUID> field) {
setField(NAMESPACE, field);
}
/**
* Set the <code>name</code> parameter IN value to the routine
*/
public void setName_(String value) {
setValue(NAME, value);
}
/**
* Set the <code>name</code> parameter to the function to be used with a
* {@link org.jooq.Select} statement
*/
public void setName_(Field<String> field) {
setField(NAME, field);
}
}

View file

@ -0,0 +1,38 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import java.util.UUID;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UuidGenerateV4 extends AbstractRoutine<UUID> {
private static final long serialVersionUID = 1L;
/**
* The parameter <code>public.uuid_generate_v4.RETURN_VALUE</code>.
*/
public static final Parameter<UUID> RETURN_VALUE = Internal.createParameter("RETURN_VALUE", SQLDataType.UUID, false, false);
/**
* Create a new routine call instance
*/
public UuidGenerateV4() {
super("uuid_generate_v4", Public.PUBLIC, SQLDataType.UUID);
setReturnParameter(RETURN_VALUE);
}
}

View file

@ -0,0 +1,81 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import java.util.UUID;
import org.jooq.Field;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UuidGenerateV5 extends AbstractRoutine<UUID> {
private static final long serialVersionUID = 1L;
/**
* The parameter <code>public.uuid_generate_v5.RETURN_VALUE</code>.
*/
public static final Parameter<UUID> RETURN_VALUE = Internal.createParameter("RETURN_VALUE", SQLDataType.UUID, false, false);
/**
* The parameter <code>public.uuid_generate_v5.namespace</code>.
*/
public static final Parameter<UUID> NAMESPACE = Internal.createParameter("namespace", SQLDataType.UUID, false, false);
/**
* The parameter <code>public.uuid_generate_v5.name</code>.
*/
public static final Parameter<String> NAME = Internal.createParameter("name", SQLDataType.CLOB, false, false);
/**
* Create a new routine call instance
*/
public UuidGenerateV5() {
super("uuid_generate_v5", Public.PUBLIC, SQLDataType.UUID);
setReturnParameter(RETURN_VALUE);
addInParameter(NAMESPACE);
addInParameter(NAME);
}
/**
* Set the <code>namespace</code> parameter IN value to the routine
*/
public void setNamespace(UUID value) {
setValue(NAMESPACE, value);
}
/**
* Set the <code>namespace</code> parameter to the function to be used with
* a {@link org.jooq.Select} statement
*/
public void setNamespace(Field<UUID> field) {
setField(NAMESPACE, field);
}
/**
* Set the <code>name</code> parameter IN value to the routine
*/
public void setName_(String value) {
setValue(NAME, value);
}
/**
* Set the <code>name</code> parameter to the function to be used with a
* {@link org.jooq.Select} statement
*/
public void setName_(Field<String> field) {
setField(NAME, field);
}
}

View file

@ -0,0 +1,38 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import java.util.UUID;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UuidNil extends AbstractRoutine<UUID> {
private static final long serialVersionUID = 1L;
/**
* The parameter <code>public.uuid_nil.RETURN_VALUE</code>.
*/
public static final Parameter<UUID> RETURN_VALUE = Internal.createParameter("RETURN_VALUE", SQLDataType.UUID, false, false);
/**
* Create a new routine call instance
*/
public UuidNil() {
super("uuid_nil", Public.PUBLIC, SQLDataType.UUID);
setReturnParameter(RETURN_VALUE);
}
}

View file

@ -0,0 +1,38 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import java.util.UUID;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UuidNsDns extends AbstractRoutine<UUID> {
private static final long serialVersionUID = 1L;
/**
* The parameter <code>public.uuid_ns_dns.RETURN_VALUE</code>.
*/
public static final Parameter<UUID> RETURN_VALUE = Internal.createParameter("RETURN_VALUE", SQLDataType.UUID, false, false);
/**
* Create a new routine call instance
*/
public UuidNsDns() {
super("uuid_ns_dns", Public.PUBLIC, SQLDataType.UUID);
setReturnParameter(RETURN_VALUE);
}
}

View file

@ -0,0 +1,38 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import java.util.UUID;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UuidNsOid extends AbstractRoutine<UUID> {
private static final long serialVersionUID = 1L;
/**
* The parameter <code>public.uuid_ns_oid.RETURN_VALUE</code>.
*/
public static final Parameter<UUID> RETURN_VALUE = Internal.createParameter("RETURN_VALUE", SQLDataType.UUID, false, false);
/**
* Create a new routine call instance
*/
public UuidNsOid() {
super("uuid_ns_oid", Public.PUBLIC, SQLDataType.UUID);
setReturnParameter(RETURN_VALUE);
}
}

View file

@ -0,0 +1,38 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import java.util.UUID;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UuidNsUrl extends AbstractRoutine<UUID> {
private static final long serialVersionUID = 1L;
/**
* The parameter <code>public.uuid_ns_url.RETURN_VALUE</code>.
*/
public static final Parameter<UUID> RETURN_VALUE = Internal.createParameter("RETURN_VALUE", SQLDataType.UUID, false, false);
/**
* Create a new routine call instance
*/
public UuidNsUrl() {
super("uuid_ns_url", Public.PUBLIC, SQLDataType.UUID);
setReturnParameter(RETURN_VALUE);
}
}

View file

@ -0,0 +1,38 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.routines;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import java.util.UUID;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UuidNsX500 extends AbstractRoutine<UUID> {
private static final long serialVersionUID = 1L;
/**
* The parameter <code>public.uuid_ns_x500.RETURN_VALUE</code>.
*/
public static final Parameter<UUID> RETURN_VALUE = Internal.createParameter("RETURN_VALUE", SQLDataType.UUID, false, false);
/**
* Create a new routine call instance
*/
public UuidNsX500() {
super("uuid_ns_x500", Public.PUBLIC, SQLDataType.UUID);
setReturnParameter(RETURN_VALUE);
}
}

View file

@ -0,0 +1,245 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records.JobPositionRecord;
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.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 JobPosition extends TableImpl<JobPositionRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.job_position</code>
*/
public static final JobPosition JOB_POSITION = new JobPosition();
/**
* The class holding records for this type
*/
@Override
public Class<JobPositionRecord> getRecordType() {
return JobPositionRecord.class;
}
/**
* The column <code>public.job_position.job_position_id</code>.
*/
public final TableField<JobPositionRecord, Long> JOB_POSITION_ID = createField(DSL.name("job_position_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column <code>public.job_position.name</code>.
*/
public final TableField<JobPositionRecord, String> NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(100).nullable(false), this, "");
/**
* The column <code>public.job_position.code</code>.
*/
public final TableField<JobPositionRecord, String> CODE = createField(DSL.name("code"), SQLDataType.VARCHAR(100).nullable(false), this, "");
/**
* The column <code>public.job_position.start_date</code>.
*/
public final TableField<JobPositionRecord, Timestamp> START_DATE = createField(DSL.name("start_date"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
/**
* The column <code>public.job_position.close_date</code>.
*/
public final TableField<JobPositionRecord, Timestamp> CLOSE_DATE = createField(DSL.name("close_date"), SQLDataType.TIMESTAMP(0), this, "");
private JobPosition(Name alias, Table<JobPositionRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private JobPosition(Name alias, Table<JobPositionRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>public.job_position</code> table reference
*/
public JobPosition(String alias) {
this(DSL.name(alias), JOB_POSITION);
}
/**
* Create an aliased <code>public.job_position</code> table reference
*/
public JobPosition(Name alias) {
this(alias, JOB_POSITION);
}
/**
* Create a <code>public.job_position</code> table reference
*/
public JobPosition() {
this(DSL.name("job_position"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<JobPositionRecord, Long> getIdentity() {
return (Identity<JobPositionRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<JobPositionRecord> getPrimaryKey() {
return Keys.PK_JOB_POSITION;
}
@Override
public JobPosition as(String alias) {
return new JobPosition(DSL.name(alias), this);
}
@Override
public JobPosition as(Name alias) {
return new JobPosition(alias, this);
}
@Override
public JobPosition as(Table<?> alias) {
return new JobPosition(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public JobPosition rename(String name) {
return new JobPosition(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public JobPosition rename(Name name) {
return new JobPosition(name, null);
}
/**
* Rename this table
*/
@Override
public JobPosition rename(Table<?> name) {
return new JobPosition(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public JobPosition where(Condition condition) {
return new JobPosition(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public JobPosition where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public JobPosition where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public JobPosition where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public JobPosition where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public JobPosition where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public JobPosition where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public JobPosition where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public JobPosition whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public JobPosition whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,321 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.UserApplicationList.UserApplicationListPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records.LinkUserApplicationUserGroupRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserGroup.UserGroupPath;
import java.sql.Timestamp;
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.Identity;
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;
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 LinkUserApplicationUserGroup extends TableImpl<LinkUserApplicationUserGroupRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of
* <code>public.link_user_application_user_group</code>
*/
public static final LinkUserApplicationUserGroup LINK_USER_APPLICATION_USER_GROUP = new LinkUserApplicationUserGroup();
/**
* The class holding records for this type
*/
@Override
public Class<LinkUserApplicationUserGroupRecord> getRecordType() {
return LinkUserApplicationUserGroupRecord.class;
}
/**
* The column
* <code>public.link_user_application_user_group.link_user_application_user_group_id</code>.
*/
public final TableField<LinkUserApplicationUserGroupRecord, Long> LINK_USER_APPLICATION_USER_GROUP_ID = createField(DSL.name("link_user_application_user_group_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column
* <code>public.link_user_application_user_group.user_application_list_id</code>.
*/
public final TableField<LinkUserApplicationUserGroupRecord, Long> USER_APPLICATION_LIST_ID = createField(DSL.name("user_application_list_id"), SQLDataType.BIGINT.nullable(false), this, "");
/**
* The column
* <code>public.link_user_application_user_group.user_group_id</code>.
*/
public final TableField<LinkUserApplicationUserGroupRecord, String> USER_GROUP_ID = createField(DSL.name("user_group_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>public.link_user_application_user_group.created</code>.
*/
public final TableField<LinkUserApplicationUserGroupRecord, Timestamp> CREATED = createField(DSL.name("created"), SQLDataType.TIMESTAMP(0).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
private LinkUserApplicationUserGroup(Name alias, Table<LinkUserApplicationUserGroupRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private LinkUserApplicationUserGroup(Name alias, Table<LinkUserApplicationUserGroupRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>public.link_user_application_user_group</code>
* table reference
*/
public LinkUserApplicationUserGroup(String alias) {
this(DSL.name(alias), LINK_USER_APPLICATION_USER_GROUP);
}
/**
* Create an aliased <code>public.link_user_application_user_group</code>
* table reference
*/
public LinkUserApplicationUserGroup(Name alias) {
this(alias, LINK_USER_APPLICATION_USER_GROUP);
}
/**
* Create a <code>public.link_user_application_user_group</code> table
* reference
*/
public LinkUserApplicationUserGroup() {
this(DSL.name("link_user_application_user_group"), null);
}
public <O extends Record> LinkUserApplicationUserGroup(Table<O> path, ForeignKey<O, LinkUserApplicationUserGroupRecord> childPath, InverseForeignKey<O, LinkUserApplicationUserGroupRecord> parentPath) {
super(path, childPath, parentPath, LINK_USER_APPLICATION_USER_GROUP);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class LinkUserApplicationUserGroupPath extends LinkUserApplicationUserGroup implements Path<LinkUserApplicationUserGroupRecord> {
public <O extends Record> LinkUserApplicationUserGroupPath(Table<O> path, ForeignKey<O, LinkUserApplicationUserGroupRecord> childPath, InverseForeignKey<O, LinkUserApplicationUserGroupRecord> parentPath) {
super(path, childPath, parentPath);
}
private LinkUserApplicationUserGroupPath(Name alias, Table<LinkUserApplicationUserGroupRecord> aliased) {
super(alias, aliased);
}
@Override
public LinkUserApplicationUserGroupPath as(String alias) {
return new LinkUserApplicationUserGroupPath(DSL.name(alias), this);
}
@Override
public LinkUserApplicationUserGroupPath as(Name alias) {
return new LinkUserApplicationUserGroupPath(alias, this);
}
@Override
public LinkUserApplicationUserGroupPath as(Table<?> alias) {
return new LinkUserApplicationUserGroupPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<LinkUserApplicationUserGroupRecord, Long> getIdentity() {
return (Identity<LinkUserApplicationUserGroupRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<LinkUserApplicationUserGroupRecord> getPrimaryKey() {
return Keys.PK_LINK_USER_APPLICATION_USER_GROUP;
}
@Override
public List<UniqueKey<LinkUserApplicationUserGroupRecord>> getUniqueKeys() {
return Arrays.asList(Keys.UNI_USER_GROUP);
}
@Override
public List<ForeignKey<LinkUserApplicationUserGroupRecord, ?>> getReferences() {
return Arrays.asList(Keys.LINK_USER_APPLICATION_USER_GROUP__FK_USER_APPLICATION_LIST, Keys.LINK_USER_APPLICATION_USER_GROUP__FK_USER_GROUP);
}
private transient UserApplicationListPath _userApplicationList;
/**
* Get the implicit join path to the
* <code>public.user_application_list</code> table.
*/
public UserApplicationListPath userApplicationList() {
if (_userApplicationList == null)
_userApplicationList = new UserApplicationListPath(this, Keys.LINK_USER_APPLICATION_USER_GROUP__FK_USER_APPLICATION_LIST, null);
return _userApplicationList;
}
private transient UserGroupPath _userGroup;
/**
* Get the implicit join path to the <code>security.user_group</code> table.
*/
public UserGroupPath userGroup() {
if (_userGroup == null)
_userGroup = new UserGroupPath(this, Keys.LINK_USER_APPLICATION_USER_GROUP__FK_USER_GROUP, null);
return _userGroup;
}
@Override
public LinkUserApplicationUserGroup as(String alias) {
return new LinkUserApplicationUserGroup(DSL.name(alias), this);
}
@Override
public LinkUserApplicationUserGroup as(Name alias) {
return new LinkUserApplicationUserGroup(alias, this);
}
@Override
public LinkUserApplicationUserGroup as(Table<?> alias) {
return new LinkUserApplicationUserGroup(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public LinkUserApplicationUserGroup rename(String name) {
return new LinkUserApplicationUserGroup(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public LinkUserApplicationUserGroup rename(Name name) {
return new LinkUserApplicationUserGroup(name, null);
}
/**
* Rename this table
*/
@Override
public LinkUserApplicationUserGroup rename(Table<?> name) {
return new LinkUserApplicationUserGroup(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserApplicationUserGroup where(Condition condition) {
return new LinkUserApplicationUserGroup(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserApplicationUserGroup where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserApplicationUserGroup where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserApplicationUserGroup where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserApplicationUserGroup where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserApplicationUserGroup where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserApplicationUserGroup where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserApplicationUserGroup where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserApplicationUserGroup whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserApplicationUserGroup whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,414 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records.RecruitmentRecord;
import java.sql.Timestamp;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.UUID;
import org.jooq.Condition;
import org.jooq.Field;
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;
/**
* Военный комиссариат
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Recruitment extends TableImpl<RecruitmentRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.recruitment</code>
*/
public static final Recruitment RECRUITMENT = new Recruitment();
/**
* The class holding records for this type
*/
@Override
public Class<RecruitmentRecord> getRecordType() {
return RecruitmentRecord.class;
}
/**
* The column <code>public.recruitment.id</code>. Идентификатор ВК
*/
public final TableField<RecruitmentRecord, UUID> ID = createField(DSL.name("id"), SQLDataType.UUID.nullable(false).defaultValue(DSL.field(DSL.raw("uuid_generate_v4()"), SQLDataType.UUID)), this, "Идентификатор ВК");
/**
* The column <code>public.recruitment.idm_id</code>. Идентификатор
* организации
*/
public final TableField<RecruitmentRecord, String> IDM_ID = createField(DSL.name("idm_id"), SQLDataType.VARCHAR(256), this, "Идентификатор организации");
/**
* The column <code>public.recruitment.parent_id</code>. Идентификатор
* вышестоящей организации
*/
public final TableField<RecruitmentRecord, String> PARENT_ID = createField(DSL.name("parent_id"), SQLDataType.VARCHAR, this, "Идентификатор вышестоящей организации");
/**
* The column <code>public.recruitment.version</code>. Версия записи
*/
public final TableField<RecruitmentRecord, Integer> VERSION = createField(DSL.name("version"), SQLDataType.INTEGER, this, "Версия записи");
/**
* The column <code>public.recruitment.created_at</code>. Дата создания
*/
public final TableField<RecruitmentRecord, Timestamp> CREATED_AT = createField(DSL.name("created_at"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "Дата создания");
/**
* The column <code>public.recruitment.updated_at</code>. Дата обновления
*/
public final TableField<RecruitmentRecord, Timestamp> UPDATED_AT = createField(DSL.name("updated_at"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "Дата обновления");
/**
* The column <code>public.recruitment.schema</code>. Схема
*/
public final TableField<RecruitmentRecord, String> SCHEMA = createField(DSL.name("schema"), SQLDataType.VARCHAR(64).nullable(false), this, "Схема");
/**
* The column <code>public.recruitment.military_code</code>. Код организации
*/
public final TableField<RecruitmentRecord, String> MILITARY_CODE = createField(DSL.name("military_code"), SQLDataType.VARCHAR(16), this, "Код организации");
/**
* The column <code>public.recruitment.shortname</code>. Укороченное
* наименование организации
*/
public final TableField<RecruitmentRecord, String> SHORTNAME = createField(DSL.name("shortname"), SQLDataType.VARCHAR.nullable(false), this, "Укороченное наименование организации");
/**
* The column <code>public.recruitment.fullname</code>. Полное наименование
* организации
*/
public final TableField<RecruitmentRecord, String> FULLNAME = createField(DSL.name("fullname"), SQLDataType.VARCHAR.nullable(false), this, "Полное наименование организации");
/**
* The column <code>public.recruitment.dns</code>. ДНС организации
*/
public final TableField<RecruitmentRecord, String> DNS = createField(DSL.name("dns"), SQLDataType.VARCHAR(64), this, "ДНС организации");
/**
* The column <code>public.recruitment.email</code>. Е-mail организации
*/
public final TableField<RecruitmentRecord, String> EMAIL = createField(DSL.name("email"), SQLDataType.VARCHAR(255), this, "Е-mail организации");
/**
* The column <code>public.recruitment.phone</code>. Телефон организации
*/
public final TableField<RecruitmentRecord, String> PHONE = createField(DSL.name("phone"), SQLDataType.VARCHAR(24), this, "Телефон организации");
/**
* The column <code>public.recruitment.address</code>. Адрес организации
*/
public final TableField<RecruitmentRecord, String> ADDRESS = createField(DSL.name("address"), SQLDataType.VARCHAR, this, "Адрес организации");
/**
* The column <code>public.recruitment.address_id</code>. Идентификатор
* адреса организации
*/
public final TableField<RecruitmentRecord, String> ADDRESS_ID = createField(DSL.name("address_id"), SQLDataType.VARCHAR, this, "Идентификатор адреса организации");
/**
* The column <code>public.recruitment.postal_address</code>. Почтовый адрес
* организации
*/
public final TableField<RecruitmentRecord, String> POSTAL_ADDRESS = createField(DSL.name("postal_address"), SQLDataType.VARCHAR, this, "Почтовый адрес организации");
/**
* The column <code>public.recruitment.postal_address_id</code>.
* Идентификатор почтового адреса организации
*/
public final TableField<RecruitmentRecord, String> POSTAL_ADDRESS_ID = createField(DSL.name("postal_address_id"), SQLDataType.VARCHAR, this, "Идентификатор почтового адреса организации");
/**
* The column <code>public.recruitment.nsi_department_id</code>.
* Идентификатор департамента из НСИ
*/
public final TableField<RecruitmentRecord, String> NSI_DEPARTMENT_ID = createField(DSL.name("nsi_department_id"), SQLDataType.VARCHAR, this, "Идентификатор департамента из НСИ");
/**
* The column <code>public.recruitment.nsi_organization_id</code>.
* Идентификатор организации из НСИ
*/
public final TableField<RecruitmentRecord, String> NSI_ORGANIZATION_ID = createField(DSL.name("nsi_organization_id"), SQLDataType.VARCHAR, this, "Идентификатор организации из НСИ");
/**
* The column <code>public.recruitment.oktmo</code>. ОКТМО
*/
public final TableField<RecruitmentRecord, String> OKTMO = createField(DSL.name("oktmo"), SQLDataType.VARCHAR, this, "ОКТМО");
/**
* The column <code>public.recruitment.org_ogrn</code>. ОГРН организации
*/
public final TableField<RecruitmentRecord, String> ORG_OGRN = createField(DSL.name("org_ogrn"), SQLDataType.VARCHAR, this, "ОГРН организации");
/**
* The column <code>public.recruitment.dep_ogrn</code>. ОГРН департамента
*/
public final TableField<RecruitmentRecord, String> DEP_OGRN = createField(DSL.name("dep_ogrn"), SQLDataType.VARCHAR, this, "ОГРН департамента");
/**
* The column <code>public.recruitment.epgu_id</code>. Идентификатор ЕПГУ
*/
public final TableField<RecruitmentRecord, String> EPGU_ID = createField(DSL.name("epgu_id"), SQLDataType.VARCHAR, this, "Идентификатор ЕПГУ");
/**
* The column <code>public.recruitment.kpp</code>. КПП
*/
public final TableField<RecruitmentRecord, String> KPP = createField(DSL.name("kpp"), SQLDataType.VARCHAR(64), this, "КПП");
/**
* The column <code>public.recruitment.inn</code>. ИНН
*/
public final TableField<RecruitmentRecord, String> INN = createField(DSL.name("inn"), SQLDataType.VARCHAR(64), this, "ИНН");
/**
* The column <code>public.recruitment.okato</code>. ОКАТО
*/
public final TableField<RecruitmentRecord, String> OKATO = createField(DSL.name("okato"), SQLDataType.VARCHAR(64), this, "ОКАТО");
/**
* The column <code>public.recruitment.division_type</code>. Тип дивизиона
*/
public final TableField<RecruitmentRecord, String> DIVISION_TYPE = createField(DSL.name("division_type"), SQLDataType.VARCHAR(64), this, "Тип дивизиона");
/**
* The column <code>public.recruitment.tns_department_id</code>.
* Идентификатор департамента из ТНС
*/
public final TableField<RecruitmentRecord, String> TNS_DEPARTMENT_ID = createField(DSL.name("tns_department_id"), SQLDataType.VARCHAR, this, "Идентификатор департамента из ТНС");
/**
* The column <code>public.recruitment.enabled</code>. Признак актуальности
*/
public final TableField<RecruitmentRecord, Boolean> ENABLED = createField(DSL.name("enabled"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("true"), SQLDataType.BOOLEAN)), this, "Признак актуальности");
/**
* The column <code>public.recruitment.timezone</code>. Часовой пояс
*/
public final TableField<RecruitmentRecord, String> TIMEZONE = createField(DSL.name("timezone"), SQLDataType.VARCHAR(64), this, "Часовой пояс");
/**
* The column <code>public.recruitment.reports_enabled</code>. Признак
* актуальности для отчета
*/
public final TableField<RecruitmentRecord, Boolean> REPORTS_ENABLED = createField(DSL.name("reports_enabled"), SQLDataType.BOOLEAN, this, "Признак актуальности для отчета");
/**
* The column <code>public.recruitment.region_id</code>. Идентификатор
* региона
*/
public final TableField<RecruitmentRecord, String> REGION_ID = createField(DSL.name("region_id"), SQLDataType.VARCHAR, this, "Идентификатор региона");
/**
* The column <code>public.recruitment.subpoena_series_code</code>. Серия
*/
public final TableField<RecruitmentRecord, String> SUBPOENA_SERIES_CODE = createField(DSL.name("subpoena_series_code"), SQLDataType.VARCHAR(64), this, "Серия");
/**
* The column <code>public.recruitment.hidden</code>. Признак скрытого
*/
public final TableField<RecruitmentRecord, Boolean> HIDDEN = createField(DSL.name("hidden"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, "Признак скрытого");
/**
* The column <code>public.recruitment.region_code</code>.
*/
public final TableField<RecruitmentRecord, String> REGION_CODE = createField(DSL.name("region_code"), SQLDataType.CLOB, this, "");
/**
* 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, "");
private Recruitment(Name alias, Table<RecruitmentRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private Recruitment(Name alias, Table<RecruitmentRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment("Военный комиссариат"), TableOptions.table(), where);
}
/**
* Create an aliased <code>public.recruitment</code> table reference
*/
public Recruitment(String alias) {
this(DSL.name(alias), RECRUITMENT);
}
/**
* Create an aliased <code>public.recruitment</code> table reference
*/
public Recruitment(Name alias) {
this(alias, RECRUITMENT);
}
/**
* Create a <code>public.recruitment</code> table reference
*/
public Recruitment() {
this(DSL.name("recruitment"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public UniqueKey<RecruitmentRecord> getPrimaryKey() {
return Keys.RECRUITMENT_PKEY;
}
@Override
public List<UniqueKey<RecruitmentRecord>> getUniqueKeys() {
return Arrays.asList(Keys.RECRUITMENT_IDM_ID_KEY);
}
@Override
public Recruitment as(String alias) {
return new Recruitment(DSL.name(alias), this);
}
@Override
public Recruitment as(Name alias) {
return new Recruitment(alias, this);
}
@Override
public Recruitment as(Table<?> alias) {
return new Recruitment(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Recruitment rename(String name) {
return new Recruitment(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Recruitment rename(Name name) {
return new Recruitment(name, null);
}
/**
* Rename this table
*/
@Override
public Recruitment rename(Table<?> name) {
return new Recruitment(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public Recruitment where(Condition condition) {
return new Recruitment(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public Recruitment where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Recruitment where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Recruitment where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Recruitment where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Recruitment where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Recruitment where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Recruitment where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public Recruitment whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public Recruitment whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,243 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records.UserApplicationDocumentRecord;
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 UserApplicationDocument extends TableImpl<UserApplicationDocumentRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.user_application_document</code>
*/
public static final UserApplicationDocument USER_APPLICATION_DOCUMENT = new UserApplicationDocument();
/**
* The class holding records for this type
*/
@Override
public Class<UserApplicationDocumentRecord> getRecordType() {
return UserApplicationDocumentRecord.class;
}
/**
* The column
* <code>public.user_application_document.user_application_document_id</code>.
*/
public final TableField<UserApplicationDocumentRecord, Long> USER_APPLICATION_DOCUMENT_ID = createField(DSL.name("user_application_document_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column <code>public.user_application_document.file_name</code>.
*/
public final TableField<UserApplicationDocumentRecord, String> FILE_NAME = createField(DSL.name("file_name"), SQLDataType.VARCHAR(100), this, "");
/**
* The column <code>public.user_application_document.file</code>.
*/
public final TableField<UserApplicationDocumentRecord, byte[]> FILE = createField(DSL.name("file"), SQLDataType.BLOB, this, "");
/**
* The column
* <code>public.user_application_document.user_application_list_id</code>.
*/
public final TableField<UserApplicationDocumentRecord, Long> USER_APPLICATION_LIST_ID = createField(DSL.name("user_application_list_id"), SQLDataType.BIGINT.nullable(false), this, "");
private UserApplicationDocument(Name alias, Table<UserApplicationDocumentRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private UserApplicationDocument(Name alias, Table<UserApplicationDocumentRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>public.user_application_document</code> table
* reference
*/
public UserApplicationDocument(String alias) {
this(DSL.name(alias), USER_APPLICATION_DOCUMENT);
}
/**
* Create an aliased <code>public.user_application_document</code> table
* reference
*/
public UserApplicationDocument(Name alias) {
this(alias, USER_APPLICATION_DOCUMENT);
}
/**
* Create a <code>public.user_application_document</code> table reference
*/
public UserApplicationDocument() {
this(DSL.name("user_application_document"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<UserApplicationDocumentRecord, Long> getIdentity() {
return (Identity<UserApplicationDocumentRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<UserApplicationDocumentRecord> getPrimaryKey() {
return Keys.PK_USER_APPLICATION_DOCUMENT;
}
@Override
public UserApplicationDocument as(String alias) {
return new UserApplicationDocument(DSL.name(alias), this);
}
@Override
public UserApplicationDocument as(Name alias) {
return new UserApplicationDocument(alias, this);
}
@Override
public UserApplicationDocument as(Table<?> alias) {
return new UserApplicationDocument(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public UserApplicationDocument rename(String name) {
return new UserApplicationDocument(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public UserApplicationDocument rename(Name name) {
return new UserApplicationDocument(name, null);
}
/**
* Rename this table
*/
@Override
public UserApplicationDocument rename(Table<?> name) {
return new UserApplicationDocument(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserApplicationDocument where(Condition condition) {
return new UserApplicationDocument(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserApplicationDocument where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserApplicationDocument where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserApplicationDocument where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserApplicationDocument where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserApplicationDocument where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserApplicationDocument where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserApplicationDocument where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserApplicationDocument whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserApplicationDocument whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,409 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.Public;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.LinkUserApplicationUserGroup.LinkUserApplicationUserGroupPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records.UserApplicationListRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserGroup.UserGroupPath;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.Collection;
import java.util.UUID;
import org.jooq.Condition;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
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;
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 UserApplicationList extends TableImpl<UserApplicationListRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>public.user_application_list</code>
*/
public static final UserApplicationList USER_APPLICATION_LIST = new UserApplicationList();
/**
* The class holding records for this type
*/
@Override
public Class<UserApplicationListRecord> getRecordType() {
return UserApplicationListRecord.class;
}
/**
* The column
* <code>public.user_application_list.user_application_list_id</code>.
*/
public final TableField<UserApplicationListRecord, Long> USER_APPLICATION_LIST_ID = createField(DSL.name("user_application_list_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column <code>public.user_application_list.application_kind</code>.
*/
public final TableField<UserApplicationListRecord, String> APPLICATION_KIND = createField(DSL.name("application_kind"), SQLDataType.VARCHAR(100).nullable(false), this, "");
/**
* The column <code>public.user_application_list.user_login</code>.
*/
public final TableField<UserApplicationListRecord, String> USER_LOGIN = createField(DSL.name("user_login"), SQLDataType.VARCHAR(100).nullable(false), this, "");
/**
* The column <code>public.user_application_list.user_password</code>.
*/
public final TableField<UserApplicationListRecord, String> USER_PASSWORD = createField(DSL.name("user_password"), SQLDataType.VARCHAR(100), this, "");
/**
* The column <code>public.user_application_list.secondname</code>.
*/
public final TableField<UserApplicationListRecord, String> SECONDNAME = createField(DSL.name("secondname"), SQLDataType.VARCHAR(1000).nullable(false), this, "");
/**
* The column <code>public.user_application_list.firstname</code>.
*/
public final TableField<UserApplicationListRecord, String> FIRSTNAME = createField(DSL.name("firstname"), SQLDataType.VARCHAR(1000).nullable(false), this, "");
/**
* The column <code>public.user_application_list.middlename</code>.
*/
public final TableField<UserApplicationListRecord, String> MIDDLENAME = createField(DSL.name("middlename"), SQLDataType.VARCHAR(1000), this, "");
/**
* The column <code>public.user_application_list.phone</code>.
*/
public final TableField<UserApplicationListRecord, String> PHONE = createField(DSL.name("phone"), SQLDataType.VARCHAR(20), this, "");
/**
* The column <code>public.user_application_list.ip_address</code>.
*/
public final TableField<UserApplicationListRecord, String> IP_ADDRESS = createField(DSL.name("ip_address"), SQLDataType.VARCHAR(1000), this, "");
/**
* The column <code>public.user_application_list.start_date</code>.
*/
public final TableField<UserApplicationListRecord, Timestamp> START_DATE = createField(DSL.name("start_date"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
/**
* The column <code>public.user_application_list.close_date</code>.
*/
public final TableField<UserApplicationListRecord, Timestamp> CLOSE_DATE = createField(DSL.name("close_date"), SQLDataType.TIMESTAMP(0), this, "");
/**
* The column <code>public.user_application_list.user_status</code>.
*/
public final TableField<UserApplicationListRecord, String> USER_STATUS = createField(DSL.name("user_status"), SQLDataType.VARCHAR(50), this, "");
/**
* The column <code>public.user_application_list.application_status</code>.
*/
public final TableField<UserApplicationListRecord, String> APPLICATION_STATUS = createField(DSL.name("application_status"), SQLDataType.VARCHAR(100).nullable(false), this, "");
/**
* The column <code>public.user_application_list.comment</code>.
*/
public final TableField<UserApplicationListRecord, String> COMMENT = createField(DSL.name("comment"), SQLDataType.VARCHAR, this, "");
/**
* The column <code>public.user_application_list.job_position_id</code>.
*/
public final TableField<UserApplicationListRecord, Long> JOB_POSITION_ID = createField(DSL.name("job_position_id"), SQLDataType.BIGINT, this, "");
/**
* The column <code>public.user_application_list.user_role_id</code>.
*/
public final TableField<UserApplicationListRecord, Long> USER_ROLE_ID = createField(DSL.name("user_role_id"), SQLDataType.BIGINT, this, "");
/**
* The column <code>public.user_application_list.recruitment_id</code>.
*/
public final TableField<UserApplicationListRecord, UUID> RECRUITMENT_ID = createField(DSL.name("recruitment_id"), SQLDataType.UUID, this, "");
/**
* The column <code>public.user_application_list.user_account_id</code>.
*/
public final TableField<UserApplicationListRecord, String> USER_ACCOUNT_ID = createField(DSL.name("user_account_id"), SQLDataType.VARCHAR, this, "");
/**
* The column <code>public.user_application_list.sex</code>.
*/
public final TableField<UserApplicationListRecord, String> SEX = createField(DSL.name("sex"), SQLDataType.VARCHAR, this, "");
/**
* The column <code>public.user_application_list.birth_date</code>.
*/
public final TableField<UserApplicationListRecord, Date> BIRTH_DATE = createField(DSL.name("birth_date"), SQLDataType.DATE, this, "");
/**
* The column <code>public.user_application_list.snils</code>.
*/
public final TableField<UserApplicationListRecord, String> SNILS = createField(DSL.name("snils"), SQLDataType.VARCHAR, this, "");
/**
* The column <code>public.user_application_list.job_position</code>.
*/
public final TableField<UserApplicationListRecord, String> JOB_POSITION = createField(DSL.name("job_position"), SQLDataType.VARCHAR, this, "");
/**
* The column
* <code>public.user_application_list.ip_address_additional</code>.
*/
public final TableField<UserApplicationListRecord, String> IP_ADDRESS_ADDITIONAL = createField(DSL.name("ip_address_additional"), SQLDataType.VARCHAR, this, "");
/**
* The column <code>public.user_application_list.number_app</code>.
*/
public final TableField<UserApplicationListRecord, Long> NUMBER_APP = createField(DSL.name("number_app"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column <code>public.user_application_list.edit_comment</code>.
*/
public final TableField<UserApplicationListRecord, String> EDIT_COMMENT = createField(DSL.name("edit_comment"), SQLDataType.VARCHAR, this, "");
private UserApplicationList(Name alias, Table<UserApplicationListRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private UserApplicationList(Name alias, Table<UserApplicationListRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>public.user_application_list</code> table
* reference
*/
public UserApplicationList(String alias) {
this(DSL.name(alias), USER_APPLICATION_LIST);
}
/**
* Create an aliased <code>public.user_application_list</code> table
* reference
*/
public UserApplicationList(Name alias) {
this(alias, USER_APPLICATION_LIST);
}
/**
* Create a <code>public.user_application_list</code> table reference
*/
public UserApplicationList() {
this(DSL.name("user_application_list"), null);
}
public <O extends Record> UserApplicationList(Table<O> path, ForeignKey<O, UserApplicationListRecord> childPath, InverseForeignKey<O, UserApplicationListRecord> parentPath) {
super(path, childPath, parentPath, USER_APPLICATION_LIST);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class UserApplicationListPath extends UserApplicationList implements Path<UserApplicationListRecord> {
public <O extends Record> UserApplicationListPath(Table<O> path, ForeignKey<O, UserApplicationListRecord> childPath, InverseForeignKey<O, UserApplicationListRecord> parentPath) {
super(path, childPath, parentPath);
}
private UserApplicationListPath(Name alias, Table<UserApplicationListRecord> aliased) {
super(alias, aliased);
}
@Override
public UserApplicationListPath as(String alias) {
return new UserApplicationListPath(DSL.name(alias), this);
}
@Override
public UserApplicationListPath as(Name alias) {
return new UserApplicationListPath(alias, this);
}
@Override
public UserApplicationListPath as(Table<?> alias) {
return new UserApplicationListPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Public.PUBLIC;
}
@Override
public Identity<UserApplicationListRecord, Long> getIdentity() {
return (Identity<UserApplicationListRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<UserApplicationListRecord> getPrimaryKey() {
return Keys.PK_USER_APPLICATION_LIST;
}
private transient LinkUserApplicationUserGroupPath _linkUserApplicationUserGroup;
/**
* Get the implicit to-many join path to the
* <code>public.link_user_application_user_group</code> table
*/
public LinkUserApplicationUserGroupPath linkUserApplicationUserGroup() {
if (_linkUserApplicationUserGroup == null)
_linkUserApplicationUserGroup = new LinkUserApplicationUserGroupPath(this, null, Keys.LINK_USER_APPLICATION_USER_GROUP__FK_USER_APPLICATION_LIST.getInverseKey());
return _linkUserApplicationUserGroup;
}
/**
* Get the implicit many-to-many join path to the
* <code>security.user_group</code> table
*/
public UserGroupPath userGroup() {
return linkUserApplicationUserGroup().userGroup();
}
@Override
public UserApplicationList as(String alias) {
return new UserApplicationList(DSL.name(alias), this);
}
@Override
public UserApplicationList as(Name alias) {
return new UserApplicationList(alias, this);
}
@Override
public UserApplicationList as(Table<?> alias) {
return new UserApplicationList(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public UserApplicationList rename(String name) {
return new UserApplicationList(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public UserApplicationList rename(Name name) {
return new UserApplicationList(name, null);
}
/**
* Rename this table
*/
@Override
public UserApplicationList rename(Table<?> name) {
return new UserApplicationList(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserApplicationList where(Condition condition) {
return new UserApplicationList(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserApplicationList where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserApplicationList where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserApplicationList where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserApplicationList where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserApplicationList where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserApplicationList where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserApplicationList where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserApplicationList whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserApplicationList whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,126 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.JobPosition;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class JobPositionRecord extends UpdatableRecordImpl<JobPositionRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.job_position.job_position_id</code>.
*/
public void setJobPositionId(Long value) {
set(0, value);
}
/**
* Getter for <code>public.job_position.job_position_id</code>.
*/
public Long getJobPositionId() {
return (Long) get(0);
}
/**
* Setter for <code>public.job_position.name</code>.
*/
public void setName(String value) {
set(1, value);
}
/**
* Getter for <code>public.job_position.name</code>.
*/
public String getName() {
return (String) get(1);
}
/**
* Setter for <code>public.job_position.code</code>.
*/
public void setCode(String value) {
set(2, value);
}
/**
* Getter for <code>public.job_position.code</code>.
*/
public String getCode() {
return (String) get(2);
}
/**
* Setter for <code>public.job_position.start_date</code>.
*/
public void setStartDate(Timestamp value) {
set(3, value);
}
/**
* Getter for <code>public.job_position.start_date</code>.
*/
public Timestamp getStartDate() {
return (Timestamp) get(3);
}
/**
* Setter for <code>public.job_position.close_date</code>.
*/
public void setCloseDate(Timestamp value) {
set(4, value);
}
/**
* Getter for <code>public.job_position.close_date</code>.
*/
public Timestamp getCloseDate() {
return (Timestamp) get(4);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached JobPositionRecord
*/
public JobPositionRecord() {
super(JobPosition.JOB_POSITION);
}
/**
* Create a detached, initialised JobPositionRecord
*/
public JobPositionRecord(Long jobPositionId, String name, String code, Timestamp startDate, Timestamp closeDate) {
super(JobPosition.JOB_POSITION);
setJobPositionId(jobPositionId);
setName(name);
setCode(code);
setStartDate(startDate);
setCloseDate(closeDate);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,117 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.LinkUserApplicationUserGroup;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class LinkUserApplicationUserGroupRecord extends UpdatableRecordImpl<LinkUserApplicationUserGroupRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for
* <code>public.link_user_application_user_group.link_user_application_user_group_id</code>.
*/
public void setLinkUserApplicationUserGroupId(Long value) {
set(0, value);
}
/**
* Getter for
* <code>public.link_user_application_user_group.link_user_application_user_group_id</code>.
*/
public Long getLinkUserApplicationUserGroupId() {
return (Long) get(0);
}
/**
* Setter for
* <code>public.link_user_application_user_group.user_application_list_id</code>.
*/
public void setUserApplicationListId(Long value) {
set(1, value);
}
/**
* Getter for
* <code>public.link_user_application_user_group.user_application_list_id</code>.
*/
public Long getUserApplicationListId() {
return (Long) get(1);
}
/**
* Setter for
* <code>public.link_user_application_user_group.user_group_id</code>.
*/
public void setUserGroupId(String value) {
set(2, value);
}
/**
* Getter for
* <code>public.link_user_application_user_group.user_group_id</code>.
*/
public String getUserGroupId() {
return (String) get(2);
}
/**
* Setter for <code>public.link_user_application_user_group.created</code>.
*/
public void setCreated(Timestamp value) {
set(3, value);
}
/**
* Getter for <code>public.link_user_application_user_group.created</code>.
*/
public Timestamp getCreated() {
return (Timestamp) get(3);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached LinkUserApplicationUserGroupRecord
*/
public LinkUserApplicationUserGroupRecord() {
super(LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP);
}
/**
* Create a detached, initialised LinkUserApplicationUserGroupRecord
*/
public LinkUserApplicationUserGroupRecord(Long linkUserApplicationUserGroupId, Long userApplicationListId, String userGroupId, Timestamp created) {
super(LinkUserApplicationUserGroup.LINK_USER_APPLICATION_USER_GROUP);
setLinkUserApplicationUserGroupId(linkUserApplicationUserGroupId);
setUserApplicationListId(userApplicationListId);
setUserGroupId(userGroupId);
setCreated(created);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,616 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.Recruitment;
import java.sql.Timestamp;
import java.util.UUID;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* Военный комиссариат
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class RecruitmentRecord extends UpdatableRecordImpl<RecruitmentRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>public.recruitment.id</code>. Идентификатор ВК
*/
public void setId(UUID value) {
set(0, value);
}
/**
* Getter for <code>public.recruitment.id</code>. Идентификатор ВК
*/
public UUID getId() {
return (UUID) get(0);
}
/**
* Setter for <code>public.recruitment.idm_id</code>. Идентификатор
* организации
*/
public void setIdmId(String value) {
set(1, value);
}
/**
* Getter for <code>public.recruitment.idm_id</code>. Идентификатор
* организации
*/
public String getIdmId() {
return (String) get(1);
}
/**
* Setter for <code>public.recruitment.parent_id</code>. Идентификатор
* вышестоящей организации
*/
public void setParentId(String value) {
set(2, value);
}
/**
* Getter for <code>public.recruitment.parent_id</code>. Идентификатор
* вышестоящей организации
*/
public String getParentId() {
return (String) get(2);
}
/**
* Setter for <code>public.recruitment.version</code>. Версия записи
*/
public void setVersion(Integer value) {
set(3, value);
}
/**
* Getter for <code>public.recruitment.version</code>. Версия записи
*/
public Integer getVersion() {
return (Integer) get(3);
}
/**
* Setter for <code>public.recruitment.created_at</code>. Дата создания
*/
public void setCreatedAt(Timestamp value) {
set(4, value);
}
/**
* Getter for <code>public.recruitment.created_at</code>. Дата создания
*/
public Timestamp getCreatedAt() {
return (Timestamp) get(4);
}
/**
* Setter for <code>public.recruitment.updated_at</code>. Дата обновления
*/
public void setUpdatedAt(Timestamp value) {
set(5, value);
}
/**
* Getter for <code>public.recruitment.updated_at</code>. Дата обновления
*/
public Timestamp getUpdatedAt() {
return (Timestamp) get(5);
}
/**
* Setter for <code>public.recruitment.schema</code>. Схема
*/
public void setSchema(String value) {
set(6, value);
}
/**
* Getter for <code>public.recruitment.schema</code>. Схема
*/
public String getSchema() {
return (String) get(6);
}
/**
* Setter for <code>public.recruitment.military_code</code>. Код организации
*/
public void setMilitaryCode(String value) {
set(7, value);
}
/**
* Getter for <code>public.recruitment.military_code</code>. Код организации
*/
public String getMilitaryCode() {
return (String) get(7);
}
/**
* Setter for <code>public.recruitment.shortname</code>. Укороченное
* наименование организации
*/
public void setShortname(String value) {
set(8, value);
}
/**
* Getter for <code>public.recruitment.shortname</code>. Укороченное
* наименование организации
*/
public String getShortname() {
return (String) get(8);
}
/**
* Setter for <code>public.recruitment.fullname</code>. Полное наименование
* организации
*/
public void setFullname(String value) {
set(9, value);
}
/**
* Getter for <code>public.recruitment.fullname</code>. Полное наименование
* организации
*/
public String getFullname() {
return (String) get(9);
}
/**
* Setter for <code>public.recruitment.dns</code>. ДНС организации
*/
public void setDns(String value) {
set(10, value);
}
/**
* Getter for <code>public.recruitment.dns</code>. ДНС организации
*/
public String getDns() {
return (String) get(10);
}
/**
* Setter for <code>public.recruitment.email</code>. Е-mail организации
*/
public void setEmail(String value) {
set(11, value);
}
/**
* Getter for <code>public.recruitment.email</code>. Е-mail организации
*/
public String getEmail() {
return (String) get(11);
}
/**
* Setter for <code>public.recruitment.phone</code>. Телефон организации
*/
public void setPhone(String value) {
set(12, value);
}
/**
* Getter for <code>public.recruitment.phone</code>. Телефон организации
*/
public String getPhone() {
return (String) get(12);
}
/**
* Setter for <code>public.recruitment.address</code>. Адрес организации
*/
public void setAddress(String value) {
set(13, value);
}
/**
* Getter for <code>public.recruitment.address</code>. Адрес организации
*/
public String getAddress() {
return (String) get(13);
}
/**
* Setter for <code>public.recruitment.address_id</code>. Идентификатор
* адреса организации
*/
public void setAddressId(String value) {
set(14, value);
}
/**
* Getter for <code>public.recruitment.address_id</code>. Идентификатор
* адреса организации
*/
public String getAddressId() {
return (String) get(14);
}
/**
* Setter for <code>public.recruitment.postal_address</code>. Почтовый адрес
* организации
*/
public void setPostalAddress(String value) {
set(15, value);
}
/**
* Getter for <code>public.recruitment.postal_address</code>. Почтовый адрес
* организации
*/
public String getPostalAddress() {
return (String) get(15);
}
/**
* Setter for <code>public.recruitment.postal_address_id</code>.
* Идентификатор почтового адреса организации
*/
public void setPostalAddressId(String value) {
set(16, value);
}
/**
* Getter for <code>public.recruitment.postal_address_id</code>.
* Идентификатор почтового адреса организации
*/
public String getPostalAddressId() {
return (String) get(16);
}
/**
* Setter for <code>public.recruitment.nsi_department_id</code>.
* Идентификатор департамента из НСИ
*/
public void setNsiDepartmentId(String value) {
set(17, value);
}
/**
* Getter for <code>public.recruitment.nsi_department_id</code>.
* Идентификатор департамента из НСИ
*/
public String getNsiDepartmentId() {
return (String) get(17);
}
/**
* Setter for <code>public.recruitment.nsi_organization_id</code>.
* Идентификатор организации из НСИ
*/
public void setNsiOrganizationId(String value) {
set(18, value);
}
/**
* Getter for <code>public.recruitment.nsi_organization_id</code>.
* Идентификатор организации из НСИ
*/
public String getNsiOrganizationId() {
return (String) get(18);
}
/**
* Setter for <code>public.recruitment.oktmo</code>. ОКТМО
*/
public void setOktmo(String value) {
set(19, value);
}
/**
* Getter for <code>public.recruitment.oktmo</code>. ОКТМО
*/
public String getOktmo() {
return (String) get(19);
}
/**
* Setter for <code>public.recruitment.org_ogrn</code>. ОГРН организации
*/
public void setOrgOgrn(String value) {
set(20, value);
}
/**
* Getter for <code>public.recruitment.org_ogrn</code>. ОГРН организации
*/
public String getOrgOgrn() {
return (String) get(20);
}
/**
* Setter for <code>public.recruitment.dep_ogrn</code>. ОГРН департамента
*/
public void setDepOgrn(String value) {
set(21, value);
}
/**
* Getter for <code>public.recruitment.dep_ogrn</code>. ОГРН департамента
*/
public String getDepOgrn() {
return (String) get(21);
}
/**
* Setter for <code>public.recruitment.epgu_id</code>. Идентификатор ЕПГУ
*/
public void setEpguId(String value) {
set(22, value);
}
/**
* Getter for <code>public.recruitment.epgu_id</code>. Идентификатор ЕПГУ
*/
public String getEpguId() {
return (String) get(22);
}
/**
* Setter for <code>public.recruitment.kpp</code>. КПП
*/
public void setKpp(String value) {
set(23, value);
}
/**
* Getter for <code>public.recruitment.kpp</code>. КПП
*/
public String getKpp() {
return (String) get(23);
}
/**
* Setter for <code>public.recruitment.inn</code>. ИНН
*/
public void setInn(String value) {
set(24, value);
}
/**
* Getter for <code>public.recruitment.inn</code>. ИНН
*/
public String getInn() {
return (String) get(24);
}
/**
* Setter for <code>public.recruitment.okato</code>. ОКАТО
*/
public void setOkato(String value) {
set(25, value);
}
/**
* Getter for <code>public.recruitment.okato</code>. ОКАТО
*/
public String getOkato() {
return (String) get(25);
}
/**
* Setter for <code>public.recruitment.division_type</code>. Тип дивизиона
*/
public void setDivisionType(String value) {
set(26, value);
}
/**
* Getter for <code>public.recruitment.division_type</code>. Тип дивизиона
*/
public String getDivisionType() {
return (String) get(26);
}
/**
* Setter for <code>public.recruitment.tns_department_id</code>.
* Идентификатор департамента из ТНС
*/
public void setTnsDepartmentId(String value) {
set(27, value);
}
/**
* Getter for <code>public.recruitment.tns_department_id</code>.
* Идентификатор департамента из ТНС
*/
public String getTnsDepartmentId() {
return (String) get(27);
}
/**
* Setter for <code>public.recruitment.enabled</code>. Признак актуальности
*/
public void setEnabled(Boolean value) {
set(28, value);
}
/**
* Getter for <code>public.recruitment.enabled</code>. Признак актуальности
*/
public Boolean getEnabled() {
return (Boolean) get(28);
}
/**
* Setter for <code>public.recruitment.timezone</code>. Часовой пояс
*/
public void setTimezone(String value) {
set(29, value);
}
/**
* Getter for <code>public.recruitment.timezone</code>. Часовой пояс
*/
public String getTimezone() {
return (String) get(29);
}
/**
* Setter for <code>public.recruitment.reports_enabled</code>. Признак
* актуальности для отчета
*/
public void setReportsEnabled(Boolean value) {
set(30, value);
}
/**
* Getter for <code>public.recruitment.reports_enabled</code>. Признак
* актуальности для отчета
*/
public Boolean getReportsEnabled() {
return (Boolean) get(30);
}
/**
* Setter for <code>public.recruitment.region_id</code>. Идентификатор
* региона
*/
public void setRegionId(String value) {
set(31, value);
}
/**
* Getter for <code>public.recruitment.region_id</code>. Идентификатор
* региона
*/
public String getRegionId() {
return (String) get(31);
}
/**
* Setter for <code>public.recruitment.subpoena_series_code</code>. Серия
*/
public void setSubpoenaSeriesCode(String value) {
set(32, value);
}
/**
* Getter for <code>public.recruitment.subpoena_series_code</code>. Серия
*/
public String getSubpoenaSeriesCode() {
return (String) get(32);
}
/**
* Setter for <code>public.recruitment.hidden</code>. Признак скрытого
*/
public void setHidden(Boolean value) {
set(33, value);
}
/**
* Getter for <code>public.recruitment.hidden</code>. Признак скрытого
*/
public Boolean getHidden() {
return (Boolean) get(33);
}
/**
* Setter for <code>public.recruitment.region_code</code>.
*/
public void setRegionCode(String value) {
set(34, value);
}
/**
* Getter for <code>public.recruitment.region_code</code>.
*/
public String getRegionCode() {
return (String) get(34);
}
/**
* Setter for <code>public.recruitment.ts</code>.
*/
public void setTs(Timestamp value) {
set(35, value);
}
/**
* Getter for <code>public.recruitment.ts</code>.
*/
public Timestamp getTs() {
return (Timestamp) get(35);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<UUID> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached RecruitmentRecord
*/
public RecruitmentRecord() {
super(Recruitment.RECRUITMENT);
}
/**
* Create a detached, initialised RecruitmentRecord
*/
public RecruitmentRecord(UUID id, String idmId, String parentId, Integer version, Timestamp createdAt, Timestamp updatedAt, String schema, String militaryCode, String shortname, String fullname, String dns, String email, String phone, String address, String addressId, String postalAddress, String postalAddressId, String nsiDepartmentId, String nsiOrganizationId, String oktmo, String orgOgrn, String depOgrn, String epguId, String kpp, String inn, String okato, String divisionType, String tnsDepartmentId, Boolean enabled, String timezone, Boolean reportsEnabled, String regionId, String subpoenaSeriesCode, Boolean hidden, String regionCode, Timestamp ts) {
super(Recruitment.RECRUITMENT);
setId(id);
setIdmId(idmId);
setParentId(parentId);
setVersion(version);
setCreatedAt(createdAt);
setUpdatedAt(updatedAt);
setSchema(schema);
setMilitaryCode(militaryCode);
setShortname(shortname);
setFullname(fullname);
setDns(dns);
setEmail(email);
setPhone(phone);
setAddress(address);
setAddressId(addressId);
setPostalAddress(postalAddress);
setPostalAddressId(postalAddressId);
setNsiDepartmentId(nsiDepartmentId);
setNsiOrganizationId(nsiOrganizationId);
setOktmo(oktmo);
setOrgOgrn(orgOgrn);
setDepOgrn(depOgrn);
setEpguId(epguId);
setKpp(kpp);
setInn(inn);
setOkato(okato);
setDivisionType(divisionType);
setTnsDepartmentId(tnsDepartmentId);
setEnabled(enabled);
setTimezone(timezone);
setReportsEnabled(reportsEnabled);
setRegionId(regionId);
setSubpoenaSeriesCode(subpoenaSeriesCode);
setHidden(hidden);
setRegionCode(regionCode);
setTs(ts);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,113 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.UserApplicationDocument;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UserApplicationDocumentRecord extends UpdatableRecordImpl<UserApplicationDocumentRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for
* <code>public.user_application_document.user_application_document_id</code>.
*/
public void setUserApplicationDocumentId(Long value) {
set(0, value);
}
/**
* Getter for
* <code>public.user_application_document.user_application_document_id</code>.
*/
public Long getUserApplicationDocumentId() {
return (Long) get(0);
}
/**
* Setter for <code>public.user_application_document.file_name</code>.
*/
public void setFileName(String value) {
set(1, value);
}
/**
* Getter for <code>public.user_application_document.file_name</code>.
*/
public String getFileName() {
return (String) get(1);
}
/**
* Setter for <code>public.user_application_document.file</code>.
*/
public void setFile(byte[] value) {
set(2, value);
}
/**
* Getter for <code>public.user_application_document.file</code>.
*/
public byte[] getFile() {
return (byte[]) get(2);
}
/**
* Setter for
* <code>public.user_application_document.user_application_list_id</code>.
*/
public void setUserApplicationListId(Long value) {
set(3, value);
}
/**
* Getter for
* <code>public.user_application_document.user_application_list_id</code>.
*/
public Long getUserApplicationListId() {
return (Long) get(3);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached UserApplicationDocumentRecord
*/
public UserApplicationDocumentRecord() {
super(UserApplicationDocument.USER_APPLICATION_DOCUMENT);
}
/**
* Create a detached, initialised UserApplicationDocumentRecord
*/
public UserApplicationDocumentRecord(Long userApplicationDocumentId, String fileName, byte[] file, Long userApplicationListId) {
super(UserApplicationDocument.USER_APPLICATION_DOCUMENT);
setUserApplicationDocumentId(userApplicationDocumentId);
setFileName(fileName);
setFile(file);
setUserApplicationListId(userApplicationListId);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,432 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.UserApplicationList;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.UUID;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UserApplicationListRecord extends UpdatableRecordImpl<UserApplicationListRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for
* <code>public.user_application_list.user_application_list_id</code>.
*/
public void setUserApplicationListId(Long value) {
set(0, value);
}
/**
* Getter for
* <code>public.user_application_list.user_application_list_id</code>.
*/
public Long getUserApplicationListId() {
return (Long) get(0);
}
/**
* Setter for <code>public.user_application_list.application_kind</code>.
*/
public void setApplicationKind(String value) {
set(1, value);
}
/**
* Getter for <code>public.user_application_list.application_kind</code>.
*/
public String getApplicationKind() {
return (String) get(1);
}
/**
* Setter for <code>public.user_application_list.user_login</code>.
*/
public void setUserLogin(String value) {
set(2, value);
}
/**
* Getter for <code>public.user_application_list.user_login</code>.
*/
public String getUserLogin() {
return (String) get(2);
}
/**
* Setter for <code>public.user_application_list.user_password</code>.
*/
public void setUserPassword(String value) {
set(3, value);
}
/**
* Getter for <code>public.user_application_list.user_password</code>.
*/
public String getUserPassword() {
return (String) get(3);
}
/**
* Setter for <code>public.user_application_list.secondname</code>.
*/
public void setSecondname(String value) {
set(4, value);
}
/**
* Getter for <code>public.user_application_list.secondname</code>.
*/
public String getSecondname() {
return (String) get(4);
}
/**
* Setter for <code>public.user_application_list.firstname</code>.
*/
public void setFirstname(String value) {
set(5, value);
}
/**
* Getter for <code>public.user_application_list.firstname</code>.
*/
public String getFirstname() {
return (String) get(5);
}
/**
* Setter for <code>public.user_application_list.middlename</code>.
*/
public void setMiddlename(String value) {
set(6, value);
}
/**
* Getter for <code>public.user_application_list.middlename</code>.
*/
public String getMiddlename() {
return (String) get(6);
}
/**
* Setter for <code>public.user_application_list.phone</code>.
*/
public void setPhone(String value) {
set(7, value);
}
/**
* Getter for <code>public.user_application_list.phone</code>.
*/
public String getPhone() {
return (String) get(7);
}
/**
* Setter for <code>public.user_application_list.ip_address</code>.
*/
public void setIpAddress(String value) {
set(8, value);
}
/**
* Getter for <code>public.user_application_list.ip_address</code>.
*/
public String getIpAddress() {
return (String) get(8);
}
/**
* Setter for <code>public.user_application_list.start_date</code>.
*/
public void setStartDate(Timestamp value) {
set(9, value);
}
/**
* Getter for <code>public.user_application_list.start_date</code>.
*/
public Timestamp getStartDate() {
return (Timestamp) get(9);
}
/**
* Setter for <code>public.user_application_list.close_date</code>.
*/
public void setCloseDate(Timestamp value) {
set(10, value);
}
/**
* Getter for <code>public.user_application_list.close_date</code>.
*/
public Timestamp getCloseDate() {
return (Timestamp) get(10);
}
/**
* Setter for <code>public.user_application_list.user_status</code>.
*/
public void setUserStatus(String value) {
set(11, value);
}
/**
* Getter for <code>public.user_application_list.user_status</code>.
*/
public String getUserStatus() {
return (String) get(11);
}
/**
* Setter for <code>public.user_application_list.application_status</code>.
*/
public void setApplicationStatus(String value) {
set(12, value);
}
/**
* Getter for <code>public.user_application_list.application_status</code>.
*/
public String getApplicationStatus() {
return (String) get(12);
}
/**
* Setter for <code>public.user_application_list.comment</code>.
*/
public void setComment(String value) {
set(13, value);
}
/**
* Getter for <code>public.user_application_list.comment</code>.
*/
public String getComment() {
return (String) get(13);
}
/**
* Setter for <code>public.user_application_list.job_position_id</code>.
*/
public void setJobPositionId(Long value) {
set(14, value);
}
/**
* Getter for <code>public.user_application_list.job_position_id</code>.
*/
public Long getJobPositionId() {
return (Long) get(14);
}
/**
* Setter for <code>public.user_application_list.user_role_id</code>.
*/
public void setUserRoleId(Long value) {
set(15, value);
}
/**
* Getter for <code>public.user_application_list.user_role_id</code>.
*/
public Long getUserRoleId() {
return (Long) get(15);
}
/**
* Setter for <code>public.user_application_list.recruitment_id</code>.
*/
public void setRecruitmentId(UUID value) {
set(16, value);
}
/**
* Getter for <code>public.user_application_list.recruitment_id</code>.
*/
public UUID getRecruitmentId() {
return (UUID) get(16);
}
/**
* Setter for <code>public.user_application_list.user_account_id</code>.
*/
public void setUserAccountId(String value) {
set(17, value);
}
/**
* Getter for <code>public.user_application_list.user_account_id</code>.
*/
public String getUserAccountId() {
return (String) get(17);
}
/**
* Setter for <code>public.user_application_list.sex</code>.
*/
public void setSex(String value) {
set(18, value);
}
/**
* Getter for <code>public.user_application_list.sex</code>.
*/
public String getSex() {
return (String) get(18);
}
/**
* Setter for <code>public.user_application_list.birth_date</code>.
*/
public void setBirthDate(Date value) {
set(19, value);
}
/**
* Getter for <code>public.user_application_list.birth_date</code>.
*/
public Date getBirthDate() {
return (Date) get(19);
}
/**
* Setter for <code>public.user_application_list.snils</code>.
*/
public void setSnils(String value) {
set(20, value);
}
/**
* Getter for <code>public.user_application_list.snils</code>.
*/
public String getSnils() {
return (String) get(20);
}
/**
* Setter for <code>public.user_application_list.job_position</code>.
*/
public void setJobPosition(String value) {
set(21, value);
}
/**
* Getter for <code>public.user_application_list.job_position</code>.
*/
public String getJobPosition() {
return (String) get(21);
}
/**
* Setter for
* <code>public.user_application_list.ip_address_additional</code>.
*/
public void setIpAddressAdditional(String value) {
set(22, value);
}
/**
* Getter for
* <code>public.user_application_list.ip_address_additional</code>.
*/
public String getIpAddressAdditional() {
return (String) get(22);
}
/**
* Setter for <code>public.user_application_list.number_app</code>.
*/
public void setNumberApp(Long value) {
set(23, value);
}
/**
* Getter for <code>public.user_application_list.number_app</code>.
*/
public Long getNumberApp() {
return (Long) get(23);
}
/**
* Setter for <code>public.user_application_list.edit_comment</code>.
*/
public void setEditComment(String value) {
set(24, value);
}
/**
* Getter for <code>public.user_application_list.edit_comment</code>.
*/
public String getEditComment() {
return (String) get(24);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached UserApplicationListRecord
*/
public UserApplicationListRecord() {
super(UserApplicationList.USER_APPLICATION_LIST);
}
/**
* Create a detached, initialised UserApplicationListRecord
*/
public UserApplicationListRecord(Long userApplicationListId, String applicationKind, String userLogin, String userPassword, String secondname, String firstname, String middlename, String phone, String ipAddress, 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, String ipAddressAdditional, Long numberApp, String editComment) {
super(UserApplicationList.USER_APPLICATION_LIST);
setUserApplicationListId(userApplicationListId);
setApplicationKind(applicationKind);
setUserLogin(userLogin);
setUserPassword(userPassword);
setSecondname(secondname);
setFirstname(firstname);
setMiddlename(middlename);
setPhone(phone);
setIpAddress(ipAddress);
setStartDate(startDate);
setCloseDate(closeDate);
setUserStatus(userStatus);
setApplicationStatus(applicationStatus);
setComment(comment);
setJobPositionId(jobPositionId);
setUserRoleId(userRoleId);
setRecruitmentId(recruitmentId);
setUserAccountId(userAccountId);
setSex(sex);
setBirthDate(birthDate);
setSnils(snils);
setJobPosition(jobPosition);
setIpAddressAdditional(ipAddressAdditional);
setNumberApp(numberApp);
setEditComment(editComment);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,104 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.AccessLevel;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Authority;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Databasechangeloglock;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.EsiaUser;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserAccountUserGroup;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserGroupUserRole;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserRoleAuthority;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.OrgUnit;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.OrgUnitAdditionalInfo;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.SimpleCredentials;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccount;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountAdditionInfo;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountRefreshToken;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountVerification;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserGroup;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserRole;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.AccessLevelRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.AuthorityRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.DatabasechangeloglockRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.EsiaUserRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.LinkUserAccountUserGroupRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.LinkUserGroupUserRoleRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.LinkUserRoleAuthorityRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.OrgUnitAdditionalInfoRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.OrgUnitRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.SimpleCredentialsRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserAccountAdditionInfoRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserAccountRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserAccountRefreshTokenRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserAccountVerificationRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserGroupRecord;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserRoleRecord;
import org.jooq.ForeignKey;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.Internal;
/**
* A class modelling foreign key relationships and constraints of tables in
* security.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Keys {
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
public static final UniqueKey<AccessLevelRecord> PK_ACCESS_LEVEL = Internal.createUniqueKey(AccessLevel.ACCESS_LEVEL, DSL.name("pk_access_level"), new TableField[] { AccessLevel.ACCESS_LEVEL.ACCESS_LEVEL_ID }, true);
public static final UniqueKey<AccessLevelRecord> UNI_ACCESS_LEVEL = Internal.createUniqueKey(AccessLevel.ACCESS_LEVEL, DSL.name("uni_access_level"), new TableField[] { AccessLevel.ACCESS_LEVEL.LEVEL }, true);
public static final UniqueKey<AuthorityRecord> PK_AUTHORITY = Internal.createUniqueKey(Authority.AUTHORITY, DSL.name("pk_authority"), new TableField[] { Authority.AUTHORITY.AUTHORITY_ID }, true);
public static final UniqueKey<AuthorityRecord> UNI_AUTHORITY_NAME = Internal.createUniqueKey(Authority.AUTHORITY, DSL.name("uni_authority_name"), new TableField[] { Authority.AUTHORITY.NAME }, true);
public static final UniqueKey<DatabasechangeloglockRecord> DATABASECHANGELOGLOCK_PKEY = Internal.createUniqueKey(Databasechangeloglock.DATABASECHANGELOGLOCK, DSL.name("databasechangeloglock_pkey"), new TableField[] { Databasechangeloglock.DATABASECHANGELOGLOCK.ID }, true);
public static final UniqueKey<EsiaUserRecord> PK_ESIA_USER = Internal.createUniqueKey(EsiaUser.ESIA_USER, DSL.name("pk_esia_user"), new TableField[] { EsiaUser.ESIA_USER.ESIA_USER_ID }, true);
public static final UniqueKey<EsiaUserRecord> UNI_ESIA_USER1 = Internal.createUniqueKey(EsiaUser.ESIA_USER, DSL.name("uni_esia_user1"), new TableField[] { EsiaUser.ESIA_USER.USER_ACCOUNT_ID }, true);
public static final UniqueKey<EsiaUserRecord> UNI_ESIA_USER2 = Internal.createUniqueKey(EsiaUser.ESIA_USER, DSL.name("uni_esia_user2"), new TableField[] { EsiaUser.ESIA_USER.PERSON_CONTACT_ID }, true);
public static final UniqueKey<LinkUserAccountUserGroupRecord> PK_USER_GROUP = Internal.createUniqueKey(LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP, DSL.name("pk_user_group"), new TableField[] { LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP.LINK_USER_ACCOUNT_USER_GROUP_ID }, true);
public static final UniqueKey<LinkUserAccountUserGroupRecord> UNI_USER_GROUP = Internal.createUniqueKey(LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP, DSL.name("uni_user_group"), new TableField[] { LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP.USER_ACCOUNT_ID, LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP.USER_GROUP_ID }, true);
public static final UniqueKey<LinkUserGroupUserRoleRecord> PK_GROUP_ROLE = Internal.createUniqueKey(LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE, DSL.name("pk_group_role"), new TableField[] { LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE.LINK_USER_GROUP_USER_ROLE_ID }, true);
public static final UniqueKey<LinkUserGroupUserRoleRecord> UNI_GROUP_ROLE = Internal.createUniqueKey(LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE, DSL.name("uni_group_role"), new TableField[] { LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE.USER_GROUP_ID, LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE.USER_ROLE_ID }, true);
public static final UniqueKey<LinkUserRoleAuthorityRecord> PK_ROLE_AUTHORITY = Internal.createUniqueKey(LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY, DSL.name("pk_role_authority"), new TableField[] { LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY.USER_ROLE_AUTHORITY_ID }, true);
public static final UniqueKey<LinkUserRoleAuthorityRecord> UNI_ROLE_AUTHORITY = Internal.createUniqueKey(LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY, DSL.name("uni_role_authority"), new TableField[] { LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY.USER_ROLE_ID, LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY.AUTHORITY_ID }, true);
public static final UniqueKey<OrgUnitRecord> ORG_UNIT_CODE_KEY = Internal.createUniqueKey(OrgUnit.ORG_UNIT, DSL.name("org_unit_code_key"), new TableField[] { OrgUnit.ORG_UNIT.CODE }, true);
public static final UniqueKey<OrgUnitRecord> PK_ORG_UNIT = Internal.createUniqueKey(OrgUnit.ORG_UNIT, DSL.name("pk_org_unit"), new TableField[] { OrgUnit.ORG_UNIT.ID }, true);
public static final UniqueKey<OrgUnitAdditionalInfoRecord> PK_ORG_UNIT_ADDITIONAL_INFO = Internal.createUniqueKey(OrgUnitAdditionalInfo.ORG_UNIT_ADDITIONAL_INFO, DSL.name("pk_org_unit_additional_info"), new TableField[] { OrgUnitAdditionalInfo.ORG_UNIT_ADDITIONAL_INFO.ID }, true);
public static final UniqueKey<SimpleCredentialsRecord> PK_DOMESTIC_USER = Internal.createUniqueKey(SimpleCredentials.SIMPLE_CREDENTIALS, DSL.name("pk_domestic_user"), new TableField[] { SimpleCredentials.SIMPLE_CREDENTIALS.USER_ACCOUNT_ID }, true);
public static final UniqueKey<UserAccountRecord> PK_USER = Internal.createUniqueKey(UserAccount.USER_ACCOUNT, DSL.name("pk_user"), new TableField[] { UserAccount.USER_ACCOUNT.USER_ACCOUNT_ID }, true);
public static final UniqueKey<UserAccountRecord> USER_ACCOUNT_USERNAME_UNIQUE = Internal.createUniqueKey(UserAccount.USER_ACCOUNT, DSL.name("user_account_username_unique"), new TableField[] { UserAccount.USER_ACCOUNT.USERNAME }, true);
public static final UniqueKey<UserAccountAdditionInfoRecord> PK_USER_ACCOUNT_ADDITION_INFO = Internal.createUniqueKey(UserAccountAdditionInfo.USER_ACCOUNT_ADDITION_INFO, DSL.name("pk_user_account_addition_info"), new TableField[] { UserAccountAdditionInfo.USER_ACCOUNT_ADDITION_INFO.USER_ACCOUNT_ADDITION_INFO_ID }, true);
public static final UniqueKey<UserAccountRefreshTokenRecord> PK_USER_ACCOUNT_REFRESH_TOKEN = Internal.createUniqueKey(UserAccountRefreshToken.USER_ACCOUNT_REFRESH_TOKEN, DSL.name("pk_user_account_refresh_token"), new TableField[] { UserAccountRefreshToken.USER_ACCOUNT_REFRESH_TOKEN.USER_ACCOUNT_REFRESH_TOKEN_ID }, true);
public static final UniqueKey<UserAccountVerificationRecord> PK_USER_ACCOUNT_VERIFICATION = Internal.createUniqueKey(UserAccountVerification.USER_ACCOUNT_VERIFICATION, DSL.name("pk_user_account_verification"), new TableField[] { UserAccountVerification.USER_ACCOUNT_VERIFICATION.USER_ACCOUNT_ID }, true);
public static final UniqueKey<UserGroupRecord> PK_GROUP = Internal.createUniqueKey(UserGroup.USER_GROUP, DSL.name("pk_group"), new TableField[] { UserGroup.USER_GROUP.USER_GROUP_ID }, true);
public static final UniqueKey<UserGroupRecord> UNI_GROUP_NAME = Internal.createUniqueKey(UserGroup.USER_GROUP, DSL.name("uni_group_name"), new TableField[] { UserGroup.USER_GROUP.NAME }, true);
public static final UniqueKey<UserRoleRecord> PK_ROLE = Internal.createUniqueKey(UserRole.USER_ROLE, DSL.name("pk_role"), new TableField[] { UserRole.USER_ROLE.USER_ROLE_ID }, true);
public static final UniqueKey<UserRoleRecord> UNI_ROLE_NAME = Internal.createUniqueKey(UserRole.USER_ROLE, DSL.name("uni_role_name"), new TableField[] { UserRole.USER_ROLE.NAME }, true);
// -------------------------------------------------------------------------
// FOREIGN KEY definitions
// -------------------------------------------------------------------------
public static final ForeignKey<EsiaUserRecord, UserAccountRecord> ESIA_USER__FK_ESIA_USER1 = Internal.createForeignKey(EsiaUser.ESIA_USER, DSL.name("fk_esia_user1"), new TableField[] { EsiaUser.ESIA_USER.USER_ACCOUNT_ID }, Keys.PK_USER, new TableField[] { UserAccount.USER_ACCOUNT.USER_ACCOUNT_ID }, true);
public static final ForeignKey<LinkUserAccountUserGroupRecord, UserGroupRecord> LINK_USER_ACCOUNT_USER_GROUP__FK_USER_GROUP_GROUP = Internal.createForeignKey(LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP, DSL.name("fk_user_group_group"), new TableField[] { LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP.USER_GROUP_ID }, Keys.PK_GROUP, new TableField[] { UserGroup.USER_GROUP.USER_GROUP_ID }, true);
public static final ForeignKey<LinkUserAccountUserGroupRecord, UserAccountRecord> LINK_USER_ACCOUNT_USER_GROUP__FK_USER_GROUP_USER = Internal.createForeignKey(LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP, DSL.name("fk_user_group_user"), new TableField[] { LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP.USER_ACCOUNT_ID }, Keys.PK_USER, new TableField[] { UserAccount.USER_ACCOUNT.USER_ACCOUNT_ID }, true);
public static final ForeignKey<LinkUserGroupUserRoleRecord, UserGroupRecord> LINK_USER_GROUP_USER_ROLE__FK_GROUP_ROLE_GROUP = Internal.createForeignKey(LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE, DSL.name("fk_group_role_group"), new TableField[] { LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE.USER_GROUP_ID }, Keys.PK_GROUP, new TableField[] { UserGroup.USER_GROUP.USER_GROUP_ID }, true);
public static final ForeignKey<LinkUserGroupUserRoleRecord, UserRoleRecord> LINK_USER_GROUP_USER_ROLE__FK_GROUP_ROLE_ROLE = Internal.createForeignKey(LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE, DSL.name("fk_group_role_role"), new TableField[] { LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE.USER_ROLE_ID }, Keys.PK_ROLE, new TableField[] { UserRole.USER_ROLE.USER_ROLE_ID }, true);
public static final ForeignKey<LinkUserRoleAuthorityRecord, AuthorityRecord> LINK_USER_ROLE_AUTHORITY__FK_ROLE_AUTHORITY_AUTHORITY = Internal.createForeignKey(LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY, DSL.name("fk_role_authority_authority"), new TableField[] { LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY.AUTHORITY_ID }, Keys.PK_AUTHORITY, new TableField[] { Authority.AUTHORITY.AUTHORITY_ID }, true);
public static final ForeignKey<LinkUserRoleAuthorityRecord, UserRoleRecord> LINK_USER_ROLE_AUTHORITY__FK_ROLE_AUTHORITY_ROLE = Internal.createForeignKey(LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY, DSL.name("fk_role_authority_role"), new TableField[] { LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY.USER_ROLE_ID }, Keys.PK_ROLE, new TableField[] { UserRole.USER_ROLE.USER_ROLE_ID }, true);
public static final ForeignKey<OrgUnitRecord, OrgUnitRecord> ORG_UNIT__FK_ORG_UNIT_PARENT_ID = Internal.createForeignKey(OrgUnit.ORG_UNIT, DSL.name("fk_org_unit_parent_id"), new TableField[] { OrgUnit.ORG_UNIT.PARENT_ID }, Keys.PK_ORG_UNIT, new TableField[] { OrgUnit.ORG_UNIT.ID }, true);
public static final ForeignKey<SimpleCredentialsRecord, UserAccountRecord> SIMPLE_CREDENTIALS__FK_DOMESTIC_USER1 = Internal.createForeignKey(SimpleCredentials.SIMPLE_CREDENTIALS, DSL.name("fk_domestic_user1"), new TableField[] { SimpleCredentials.SIMPLE_CREDENTIALS.USER_ACCOUNT_ID }, Keys.PK_USER, new TableField[] { UserAccount.USER_ACCOUNT.USER_ACCOUNT_ID }, true);
public static final ForeignKey<UserAccountRecord, OrgUnitRecord> USER_ACCOUNT__FK_USER_ORG_UNIT_ID = Internal.createForeignKey(UserAccount.USER_ACCOUNT, DSL.name("fk_user_org_unit_id"), new TableField[] { UserAccount.USER_ACCOUNT.ORG_UNIT_ID }, Keys.PK_ORG_UNIT, new TableField[] { OrgUnit.ORG_UNIT.ID }, true);
public static final ForeignKey<UserAccountAdditionInfoRecord, UserAccountRecord> USER_ACCOUNT_ADDITION_INFO__FK_USER_ACCOUNT_ID = Internal.createForeignKey(UserAccountAdditionInfo.USER_ACCOUNT_ADDITION_INFO, DSL.name("fk_user_account_id"), new TableField[] { UserAccountAdditionInfo.USER_ACCOUNT_ADDITION_INFO.USER_ACCOUNT_ID }, Keys.PK_USER, new TableField[] { UserAccount.USER_ACCOUNT.USER_ACCOUNT_ID }, true);
public static final ForeignKey<UserAccountRefreshTokenRecord, UserAccountRecord> USER_ACCOUNT_REFRESH_TOKEN__FK_USER_ACCOUNT_REFRESH_TOKEN = Internal.createForeignKey(UserAccountRefreshToken.USER_ACCOUNT_REFRESH_TOKEN, DSL.name("fk_user_account_refresh_token"), new TableField[] { UserAccountRefreshToken.USER_ACCOUNT_REFRESH_TOKEN.USER_ACCOUNT_ID }, Keys.PK_USER, new TableField[] { UserAccount.USER_ACCOUNT.USER_ACCOUNT_ID }, true);
public static final ForeignKey<UserAccountVerificationRecord, UserAccountRecord> USER_ACCOUNT_VERIFICATION__FK_USER_ACCOUNT_USER_ACCOUNT_VERIFICATION = Internal.createForeignKey(UserAccountVerification.USER_ACCOUNT_VERIFICATION, DSL.name("fk_user_account_user_account_verification"), new TableField[] { UserAccountVerification.USER_ACCOUNT_VERIFICATION.USER_ACCOUNT_ID }, Keys.PK_USER, new TableField[] { UserAccount.USER_ACCOUNT.USER_ACCOUNT_ID }, true);
public static final ForeignKey<UserGroupRecord, AccessLevelRecord> USER_GROUP__FK_USER_GROUP_ACCESS_LEVEL = Internal.createForeignKey(UserGroup.USER_GROUP, DSL.name("fk_user_group_access_level"), new TableField[] { UserGroup.USER_GROUP.ACCESS_LEVEL_ID }, Keys.PK_ACCESS_LEVEL, new TableField[] { AccessLevel.ACCESS_LEVEL.ACCESS_LEVEL_ID }, true);
}

View file

@ -0,0 +1,167 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security;
import ervu_usr_autority.ervu_usr_autority.db_beans.DefaultCatalog;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.AccessLevel;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Authority;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Databasechangelog;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Databasechangeloglock;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.EsiaUser;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserAccountUserGroup;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserGroupUserRole;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserRoleAuthority;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.OrgUnit;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.OrgUnitAdditionalInfo;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.SimpleCredentials;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccount;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountAdditionInfo;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountRefreshToken;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountVerification;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserGroup;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserRole;
import java.util.Arrays;
import java.util.List;
import org.jooq.Catalog;
import org.jooq.Table;
import org.jooq.impl.SchemaImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Security extends SchemaImpl {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security</code>
*/
public static final Security SECURITY = new Security();
/**
* The table <code>security.access_level</code>.
*/
public final AccessLevel ACCESS_LEVEL = AccessLevel.ACCESS_LEVEL;
/**
* The table <code>security.authority</code>.
*/
public final Authority AUTHORITY = Authority.AUTHORITY;
/**
* The table <code>security.databasechangelog</code>.
*/
public final Databasechangelog DATABASECHANGELOG = Databasechangelog.DATABASECHANGELOG;
/**
* The table <code>security.databasechangeloglock</code>.
*/
public final Databasechangeloglock DATABASECHANGELOGLOCK = Databasechangeloglock.DATABASECHANGELOGLOCK;
/**
* The table <code>security.esia_user</code>.
*/
public final EsiaUser ESIA_USER = EsiaUser.ESIA_USER;
/**
* The table <code>security.link_user_account_user_group</code>.
*/
public final LinkUserAccountUserGroup LINK_USER_ACCOUNT_USER_GROUP = LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP;
/**
* The table <code>security.link_user_group_user_role</code>.
*/
public final LinkUserGroupUserRole LINK_USER_GROUP_USER_ROLE = LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE;
/**
* The table <code>security.link_user_role_authority</code>.
*/
public final LinkUserRoleAuthority LINK_USER_ROLE_AUTHORITY = LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY;
/**
* The table <code>security.org_unit</code>.
*/
public final OrgUnit ORG_UNIT = OrgUnit.ORG_UNIT;
/**
* The table <code>security.org_unit_additional_info</code>.
*/
public final OrgUnitAdditionalInfo ORG_UNIT_ADDITIONAL_INFO = OrgUnitAdditionalInfo.ORG_UNIT_ADDITIONAL_INFO;
/**
* The table <code>security.simple_credentials</code>.
*/
public final SimpleCredentials SIMPLE_CREDENTIALS = SimpleCredentials.SIMPLE_CREDENTIALS;
/**
* The table <code>security.user_account</code>.
*/
public final UserAccount USER_ACCOUNT = UserAccount.USER_ACCOUNT;
/**
* The table <code>security.user_account_addition_info</code>.
*/
public final UserAccountAdditionInfo USER_ACCOUNT_ADDITION_INFO = UserAccountAdditionInfo.USER_ACCOUNT_ADDITION_INFO;
/**
* The table <code>security.user_account_refresh_token</code>.
*/
public final UserAccountRefreshToken USER_ACCOUNT_REFRESH_TOKEN = UserAccountRefreshToken.USER_ACCOUNT_REFRESH_TOKEN;
/**
* The table <code>security.user_account_verification</code>.
*/
public final UserAccountVerification USER_ACCOUNT_VERIFICATION = UserAccountVerification.USER_ACCOUNT_VERIFICATION;
/**
* The table <code>security.user_group</code>.
*/
public final UserGroup USER_GROUP = UserGroup.USER_GROUP;
/**
* The table <code>security.user_role</code>.
*/
public final UserRole USER_ROLE = UserRole.USER_ROLE;
/**
* No further instances allowed
*/
private Security() {
super("security", null);
}
@Override
public Catalog getCatalog() {
return DefaultCatalog.DEFAULT_CATALOG;
}
@Override
public final List<Table<?>> getTables() {
return Arrays.asList(
AccessLevel.ACCESS_LEVEL,
Authority.AUTHORITY,
Databasechangelog.DATABASECHANGELOG,
Databasechangeloglock.DATABASECHANGELOGLOCK,
EsiaUser.ESIA_USER,
LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP,
LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE,
LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY,
OrgUnit.ORG_UNIT,
OrgUnitAdditionalInfo.ORG_UNIT_ADDITIONAL_INFO,
SimpleCredentials.SIMPLE_CREDENTIALS,
UserAccount.USER_ACCOUNT,
UserAccountAdditionInfo.USER_ACCOUNT_ADDITION_INFO,
UserAccountRefreshToken.USER_ACCOUNT_REFRESH_TOKEN,
UserAccountVerification.USER_ACCOUNT_VERIFICATION,
UserGroup.USER_GROUP,
UserRole.USER_ROLE
);
}
}

View file

@ -0,0 +1,116 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.AccessLevel;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Authority;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Databasechangelog;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Databasechangeloglock;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.EsiaUser;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserAccountUserGroup;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserGroupUserRole;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserRoleAuthority;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.OrgUnit;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.OrgUnitAdditionalInfo;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.SimpleCredentials;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccount;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountAdditionInfo;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountRefreshToken;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountVerification;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserGroup;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserRole;
/**
* Convenience access to all tables in security.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Tables {
/**
* The table <code>security.access_level</code>.
*/
public static final AccessLevel ACCESS_LEVEL = AccessLevel.ACCESS_LEVEL;
/**
* The table <code>security.authority</code>.
*/
public static final Authority AUTHORITY = Authority.AUTHORITY;
/**
* The table <code>security.databasechangelog</code>.
*/
public static final Databasechangelog DATABASECHANGELOG = Databasechangelog.DATABASECHANGELOG;
/**
* The table <code>security.databasechangeloglock</code>.
*/
public static final Databasechangeloglock DATABASECHANGELOGLOCK = Databasechangeloglock.DATABASECHANGELOGLOCK;
/**
* The table <code>security.esia_user</code>.
*/
public static final EsiaUser ESIA_USER = EsiaUser.ESIA_USER;
/**
* The table <code>security.link_user_account_user_group</code>.
*/
public static final LinkUserAccountUserGroup LINK_USER_ACCOUNT_USER_GROUP = LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP;
/**
* The table <code>security.link_user_group_user_role</code>.
*/
public static final LinkUserGroupUserRole LINK_USER_GROUP_USER_ROLE = LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE;
/**
* The table <code>security.link_user_role_authority</code>.
*/
public static final LinkUserRoleAuthority LINK_USER_ROLE_AUTHORITY = LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY;
/**
* The table <code>security.org_unit</code>.
*/
public static final OrgUnit ORG_UNIT = OrgUnit.ORG_UNIT;
/**
* The table <code>security.org_unit_additional_info</code>.
*/
public static final OrgUnitAdditionalInfo ORG_UNIT_ADDITIONAL_INFO = OrgUnitAdditionalInfo.ORG_UNIT_ADDITIONAL_INFO;
/**
* The table <code>security.simple_credentials</code>.
*/
public static final SimpleCredentials SIMPLE_CREDENTIALS = SimpleCredentials.SIMPLE_CREDENTIALS;
/**
* The table <code>security.user_account</code>.
*/
public static final UserAccount USER_ACCOUNT = UserAccount.USER_ACCOUNT;
/**
* The table <code>security.user_account_addition_info</code>.
*/
public static final UserAccountAdditionInfo USER_ACCOUNT_ADDITION_INFO = UserAccountAdditionInfo.USER_ACCOUNT_ADDITION_INFO;
/**
* The table <code>security.user_account_refresh_token</code>.
*/
public static final UserAccountRefreshToken USER_ACCOUNT_REFRESH_TOKEN = UserAccountRefreshToken.USER_ACCOUNT_REFRESH_TOKEN;
/**
* The table <code>security.user_account_verification</code>.
*/
public static final UserAccountVerification USER_ACCOUNT_VERIFICATION = UserAccountVerification.USER_ACCOUNT_VERIFICATION;
/**
* The table <code>security.user_group</code>.
*/
public static final UserGroup USER_GROUP = UserGroup.USER_GROUP;
/**
* The table <code>security.user_role</code>.
*/
public static final UserRole USER_ROLE = UserRole.USER_ROLE;
}

View file

@ -0,0 +1,284 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserGroup.UserGroupPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.AccessLevelRecord;
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;
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 AccessLevel extends TableImpl<AccessLevelRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.access_level</code>
*/
public static final AccessLevel ACCESS_LEVEL = new AccessLevel();
/**
* The class holding records for this type
*/
@Override
public Class<AccessLevelRecord> getRecordType() {
return AccessLevelRecord.class;
}
/**
* The column <code>security.access_level.access_level_id</code>.
*/
public final TableField<AccessLevelRecord, String> ACCESS_LEVEL_ID = createField(DSL.name("access_level_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.access_level.level</code>.
*/
public final TableField<AccessLevelRecord, Short> LEVEL = createField(DSL.name("level"), SQLDataType.SMALLINT.nullable(false), this, "");
/**
* The column <code>security.access_level.description</code>.
*/
public final TableField<AccessLevelRecord, String> DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR(256).nullable(false), this, "");
private AccessLevel(Name alias, Table<AccessLevelRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private AccessLevel(Name alias, Table<AccessLevelRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.access_level</code> table reference
*/
public AccessLevel(String alias) {
this(DSL.name(alias), ACCESS_LEVEL);
}
/**
* Create an aliased <code>security.access_level</code> table reference
*/
public AccessLevel(Name alias) {
this(alias, ACCESS_LEVEL);
}
/**
* Create a <code>security.access_level</code> table reference
*/
public AccessLevel() {
this(DSL.name("access_level"), null);
}
public <O extends Record> AccessLevel(Table<O> path, ForeignKey<O, AccessLevelRecord> childPath, InverseForeignKey<O, AccessLevelRecord> parentPath) {
super(path, childPath, parentPath, ACCESS_LEVEL);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class AccessLevelPath extends AccessLevel implements Path<AccessLevelRecord> {
public <O extends Record> AccessLevelPath(Table<O> path, ForeignKey<O, AccessLevelRecord> childPath, InverseForeignKey<O, AccessLevelRecord> parentPath) {
super(path, childPath, parentPath);
}
private AccessLevelPath(Name alias, Table<AccessLevelRecord> aliased) {
super(alias, aliased);
}
@Override
public AccessLevelPath as(String alias) {
return new AccessLevelPath(DSL.name(alias), this);
}
@Override
public AccessLevelPath as(Name alias) {
return new AccessLevelPath(alias, this);
}
@Override
public AccessLevelPath as(Table<?> alias) {
return new AccessLevelPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<AccessLevelRecord> getPrimaryKey() {
return Keys.PK_ACCESS_LEVEL;
}
@Override
public List<UniqueKey<AccessLevelRecord>> getUniqueKeys() {
return Arrays.asList(Keys.UNI_ACCESS_LEVEL);
}
private transient UserGroupPath _userGroup;
/**
* Get the implicit to-many join path to the
* <code>security.user_group</code> table
*/
public UserGroupPath userGroup() {
if (_userGroup == null)
_userGroup = new UserGroupPath(this, null, Keys.USER_GROUP__FK_USER_GROUP_ACCESS_LEVEL.getInverseKey());
return _userGroup;
}
@Override
public AccessLevel as(String alias) {
return new AccessLevel(DSL.name(alias), this);
}
@Override
public AccessLevel as(Name alias) {
return new AccessLevel(alias, this);
}
@Override
public AccessLevel as(Table<?> alias) {
return new AccessLevel(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public AccessLevel rename(String name) {
return new AccessLevel(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public AccessLevel rename(Name name) {
return new AccessLevel(name, null);
}
/**
* Rename this table
*/
@Override
public AccessLevel rename(Table<?> name) {
return new AccessLevel(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public AccessLevel where(Condition condition) {
return new AccessLevel(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public AccessLevel where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public AccessLevel where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public AccessLevel where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public AccessLevel where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public AccessLevel where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public AccessLevel where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public AccessLevel where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public AccessLevel whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public AccessLevel whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,294 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserRoleAuthority.LinkUserRoleAuthorityPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserRole.UserRolePath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.AuthorityRecord;
import java.sql.Timestamp;
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;
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 Authority extends TableImpl<AuthorityRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.authority</code>
*/
public static final Authority AUTHORITY = new Authority();
/**
* The class holding records for this type
*/
@Override
public Class<AuthorityRecord> getRecordType() {
return AuthorityRecord.class;
}
/**
* The column <code>security.authority.authority_id</code>.
*/
public final TableField<AuthorityRecord, String> AUTHORITY_ID = createField(DSL.name("authority_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.authority.name</code>.
*/
public final TableField<AuthorityRecord, String> NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column <code>security.authority.created</code>.
*/
public final TableField<AuthorityRecord, Timestamp> CREATED = createField(DSL.name("created"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
private Authority(Name alias, Table<AuthorityRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private Authority(Name alias, Table<AuthorityRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.authority</code> table reference
*/
public Authority(String alias) {
this(DSL.name(alias), AUTHORITY);
}
/**
* Create an aliased <code>security.authority</code> table reference
*/
public Authority(Name alias) {
this(alias, AUTHORITY);
}
/**
* Create a <code>security.authority</code> table reference
*/
public Authority() {
this(DSL.name("authority"), null);
}
public <O extends Record> Authority(Table<O> path, ForeignKey<O, AuthorityRecord> childPath, InverseForeignKey<O, AuthorityRecord> parentPath) {
super(path, childPath, parentPath, AUTHORITY);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class AuthorityPath extends Authority implements Path<AuthorityRecord> {
public <O extends Record> AuthorityPath(Table<O> path, ForeignKey<O, AuthorityRecord> childPath, InverseForeignKey<O, AuthorityRecord> parentPath) {
super(path, childPath, parentPath);
}
private AuthorityPath(Name alias, Table<AuthorityRecord> aliased) {
super(alias, aliased);
}
@Override
public AuthorityPath as(String alias) {
return new AuthorityPath(DSL.name(alias), this);
}
@Override
public AuthorityPath as(Name alias) {
return new AuthorityPath(alias, this);
}
@Override
public AuthorityPath as(Table<?> alias) {
return new AuthorityPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<AuthorityRecord> getPrimaryKey() {
return Keys.PK_AUTHORITY;
}
@Override
public List<UniqueKey<AuthorityRecord>> getUniqueKeys() {
return Arrays.asList(Keys.UNI_AUTHORITY_NAME);
}
private transient LinkUserRoleAuthorityPath _linkUserRoleAuthority;
/**
* Get the implicit to-many join path to the
* <code>security.link_user_role_authority</code> table
*/
public LinkUserRoleAuthorityPath linkUserRoleAuthority() {
if (_linkUserRoleAuthority == null)
_linkUserRoleAuthority = new LinkUserRoleAuthorityPath(this, null, Keys.LINK_USER_ROLE_AUTHORITY__FK_ROLE_AUTHORITY_AUTHORITY.getInverseKey());
return _linkUserRoleAuthority;
}
/**
* Get the implicit many-to-many join path to the
* <code>security.user_role</code> table
*/
public UserRolePath userRole() {
return linkUserRoleAuthority().userRole();
}
@Override
public Authority as(String alias) {
return new Authority(DSL.name(alias), this);
}
@Override
public Authority as(Name alias) {
return new Authority(alias, this);
}
@Override
public Authority as(Table<?> alias) {
return new Authority(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Authority rename(String name) {
return new Authority(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Authority rename(Name name) {
return new Authority(name, null);
}
/**
* Rename this table
*/
@Override
public Authority rename(Table<?> name) {
return new Authority(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public Authority where(Condition condition) {
return new Authority(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public Authority where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Authority where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Authority where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Authority where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Authority where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Authority where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Authority where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public Authority whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public Authority whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,277 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.DatabasechangelogRecord;
import java.sql.Timestamp;
import java.util.Collection;
import org.jooq.Condition;
import org.jooq.Field;
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 Databasechangelog extends TableImpl<DatabasechangelogRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.databasechangelog</code>
*/
public static final Databasechangelog DATABASECHANGELOG = new Databasechangelog();
/**
* The class holding records for this type
*/
@Override
public Class<DatabasechangelogRecord> getRecordType() {
return DatabasechangelogRecord.class;
}
/**
* The column <code>security.databasechangelog.id</code>.
*/
public final TableField<DatabasechangelogRecord, String> ID = createField(DSL.name("id"), SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column <code>security.databasechangelog.author</code>.
*/
public final TableField<DatabasechangelogRecord, String> AUTHOR = createField(DSL.name("author"), SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column <code>security.databasechangelog.filename</code>.
*/
public final TableField<DatabasechangelogRecord, String> FILENAME = createField(DSL.name("filename"), SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column <code>security.databasechangelog.dateexecuted</code>.
*/
public final TableField<DatabasechangelogRecord, Timestamp> DATEEXECUTED = createField(DSL.name("dateexecuted"), SQLDataType.TIMESTAMP(0).nullable(false), this, "");
/**
* The column <code>security.databasechangelog.orderexecuted</code>.
*/
public final TableField<DatabasechangelogRecord, Integer> ORDEREXECUTED = createField(DSL.name("orderexecuted"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>security.databasechangelog.exectype</code>.
*/
public final TableField<DatabasechangelogRecord, String> EXECTYPE = createField(DSL.name("exectype"), SQLDataType.VARCHAR(10).nullable(false), this, "");
/**
* The column <code>security.databasechangelog.md5sum</code>.
*/
public final TableField<DatabasechangelogRecord, String> MD5SUM = createField(DSL.name("md5sum"), SQLDataType.VARCHAR(35), this, "");
/**
* The column <code>security.databasechangelog.description</code>.
*/
public final TableField<DatabasechangelogRecord, String> DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>security.databasechangelog.comments</code>.
*/
public final TableField<DatabasechangelogRecord, String> COMMENTS = createField(DSL.name("comments"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>security.databasechangelog.tag</code>.
*/
public final TableField<DatabasechangelogRecord, String> TAG = createField(DSL.name("tag"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>security.databasechangelog.liquibase</code>.
*/
public final TableField<DatabasechangelogRecord, String> LIQUIBASE = createField(DSL.name("liquibase"), SQLDataType.VARCHAR(20), this, "");
/**
* The column <code>security.databasechangelog.contexts</code>.
*/
public final TableField<DatabasechangelogRecord, String> CONTEXTS = createField(DSL.name("contexts"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>security.databasechangelog.labels</code>.
*/
public final TableField<DatabasechangelogRecord, String> LABELS = createField(DSL.name("labels"), SQLDataType.VARCHAR(255), this, "");
/**
* The column <code>security.databasechangelog.deployment_id</code>.
*/
public final TableField<DatabasechangelogRecord, String> DEPLOYMENT_ID = createField(DSL.name("deployment_id"), SQLDataType.VARCHAR(10), this, "");
private Databasechangelog(Name alias, Table<DatabasechangelogRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private Databasechangelog(Name alias, Table<DatabasechangelogRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.databasechangelog</code> table reference
*/
public Databasechangelog(String alias) {
this(DSL.name(alias), DATABASECHANGELOG);
}
/**
* Create an aliased <code>security.databasechangelog</code> table reference
*/
public Databasechangelog(Name alias) {
this(alias, DATABASECHANGELOG);
}
/**
* Create a <code>security.databasechangelog</code> table reference
*/
public Databasechangelog() {
this(DSL.name("databasechangelog"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public Databasechangelog as(String alias) {
return new Databasechangelog(DSL.name(alias), this);
}
@Override
public Databasechangelog as(Name alias) {
return new Databasechangelog(alias, this);
}
@Override
public Databasechangelog as(Table<?> alias) {
return new Databasechangelog(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Databasechangelog rename(String name) {
return new Databasechangelog(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Databasechangelog rename(Name name) {
return new Databasechangelog(name, null);
}
/**
* Rename this table
*/
@Override
public Databasechangelog rename(Table<?> name) {
return new Databasechangelog(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public Databasechangelog where(Condition condition) {
return new Databasechangelog(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public Databasechangelog where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Databasechangelog where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Databasechangelog where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Databasechangelog where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Databasechangelog where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Databasechangelog where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Databasechangelog where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public Databasechangelog whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public Databasechangelog whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,236 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.DatabasechangeloglockRecord;
import java.sql.Timestamp;
import java.util.Collection;
import org.jooq.Condition;
import org.jooq.Field;
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 Databasechangeloglock extends TableImpl<DatabasechangeloglockRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.databasechangeloglock</code>
*/
public static final Databasechangeloglock DATABASECHANGELOGLOCK = new Databasechangeloglock();
/**
* The class holding records for this type
*/
@Override
public Class<DatabasechangeloglockRecord> getRecordType() {
return DatabasechangeloglockRecord.class;
}
/**
* The column <code>security.databasechangeloglock.id</code>.
*/
public final TableField<DatabasechangeloglockRecord, Integer> ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>security.databasechangeloglock.locked</code>.
*/
public final TableField<DatabasechangeloglockRecord, Boolean> LOCKED = createField(DSL.name("locked"), SQLDataType.BOOLEAN.nullable(false), this, "");
/**
* The column <code>security.databasechangeloglock.lockgranted</code>.
*/
public final TableField<DatabasechangeloglockRecord, Timestamp> LOCKGRANTED = createField(DSL.name("lockgranted"), SQLDataType.TIMESTAMP(0), this, "");
/**
* The column <code>security.databasechangeloglock.lockedby</code>.
*/
public final TableField<DatabasechangeloglockRecord, String> LOCKEDBY = createField(DSL.name("lockedby"), SQLDataType.VARCHAR(255), this, "");
private Databasechangeloglock(Name alias, Table<DatabasechangeloglockRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private Databasechangeloglock(Name alias, Table<DatabasechangeloglockRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.databasechangeloglock</code> table
* reference
*/
public Databasechangeloglock(String alias) {
this(DSL.name(alias), DATABASECHANGELOGLOCK);
}
/**
* Create an aliased <code>security.databasechangeloglock</code> table
* reference
*/
public Databasechangeloglock(Name alias) {
this(alias, DATABASECHANGELOGLOCK);
}
/**
* Create a <code>security.databasechangeloglock</code> table reference
*/
public Databasechangeloglock() {
this(DSL.name("databasechangeloglock"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<DatabasechangeloglockRecord> getPrimaryKey() {
return Keys.DATABASECHANGELOGLOCK_PKEY;
}
@Override
public Databasechangeloglock as(String alias) {
return new Databasechangeloglock(DSL.name(alias), this);
}
@Override
public Databasechangeloglock as(Name alias) {
return new Databasechangeloglock(alias, this);
}
@Override
public Databasechangeloglock as(Table<?> alias) {
return new Databasechangeloglock(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public Databasechangeloglock rename(String name) {
return new Databasechangeloglock(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public Databasechangeloglock rename(Name name) {
return new Databasechangeloglock(name, null);
}
/**
* Rename this table
*/
@Override
public Databasechangeloglock rename(Table<?> name) {
return new Databasechangeloglock(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public Databasechangeloglock where(Condition condition) {
return new Databasechangeloglock(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public Databasechangeloglock where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Databasechangeloglock where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public Databasechangeloglock where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Databasechangeloglock where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Databasechangeloglock where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Databasechangeloglock where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public Databasechangeloglock where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public Databasechangeloglock whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public Databasechangeloglock whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,289 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccount.UserAccountPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.EsiaUserRecord;
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;
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 EsiaUser extends TableImpl<EsiaUserRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.esia_user</code>
*/
public static final EsiaUser ESIA_USER = new EsiaUser();
/**
* The class holding records for this type
*/
@Override
public Class<EsiaUserRecord> getRecordType() {
return EsiaUserRecord.class;
}
/**
* The column <code>security.esia_user.esia_user_id</code>.
*/
public final TableField<EsiaUserRecord, String> ESIA_USER_ID = createField(DSL.name("esia_user_id"), SQLDataType.VARCHAR(36).nullable(false), this, "");
/**
* The column <code>security.esia_user.user_account_id</code>.
*/
public final TableField<EsiaUserRecord, String> USER_ACCOUNT_ID = createField(DSL.name("user_account_id"), SQLDataType.VARCHAR(36).nullable(false), this, "");
/**
* The column <code>security.esia_user.person_contact_id</code>.
*/
public final TableField<EsiaUserRecord, Long> PERSON_CONTACT_ID = createField(DSL.name("person_contact_id"), SQLDataType.BIGINT.nullable(false), this, "");
private EsiaUser(Name alias, Table<EsiaUserRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private EsiaUser(Name alias, Table<EsiaUserRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.esia_user</code> table reference
*/
public EsiaUser(String alias) {
this(DSL.name(alias), ESIA_USER);
}
/**
* Create an aliased <code>security.esia_user</code> table reference
*/
public EsiaUser(Name alias) {
this(alias, ESIA_USER);
}
/**
* Create a <code>security.esia_user</code> table reference
*/
public EsiaUser() {
this(DSL.name("esia_user"), null);
}
public <O extends Record> EsiaUser(Table<O> path, ForeignKey<O, EsiaUserRecord> childPath, InverseForeignKey<O, EsiaUserRecord> parentPath) {
super(path, childPath, parentPath, ESIA_USER);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class EsiaUserPath extends EsiaUser implements Path<EsiaUserRecord> {
public <O extends Record> EsiaUserPath(Table<O> path, ForeignKey<O, EsiaUserRecord> childPath, InverseForeignKey<O, EsiaUserRecord> parentPath) {
super(path, childPath, parentPath);
}
private EsiaUserPath(Name alias, Table<EsiaUserRecord> aliased) {
super(alias, aliased);
}
@Override
public EsiaUserPath as(String alias) {
return new EsiaUserPath(DSL.name(alias), this);
}
@Override
public EsiaUserPath as(Name alias) {
return new EsiaUserPath(alias, this);
}
@Override
public EsiaUserPath as(Table<?> alias) {
return new EsiaUserPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<EsiaUserRecord> getPrimaryKey() {
return Keys.PK_ESIA_USER;
}
@Override
public List<UniqueKey<EsiaUserRecord>> getUniqueKeys() {
return Arrays.asList(Keys.UNI_ESIA_USER1, Keys.UNI_ESIA_USER2);
}
@Override
public List<ForeignKey<EsiaUserRecord, ?>> getReferences() {
return Arrays.asList(Keys.ESIA_USER__FK_ESIA_USER1);
}
private transient UserAccountPath _userAccount;
/**
* Get the implicit join path to the <code>security.user_account</code>
* table.
*/
public UserAccountPath userAccount() {
if (_userAccount == null)
_userAccount = new UserAccountPath(this, Keys.ESIA_USER__FK_ESIA_USER1, null);
return _userAccount;
}
@Override
public EsiaUser as(String alias) {
return new EsiaUser(DSL.name(alias), this);
}
@Override
public EsiaUser as(Name alias) {
return new EsiaUser(alias, this);
}
@Override
public EsiaUser as(Table<?> alias) {
return new EsiaUser(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public EsiaUser rename(String name) {
return new EsiaUser(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public EsiaUser rename(Name name) {
return new EsiaUser(name, null);
}
/**
* Rename this table
*/
@Override
public EsiaUser rename(Table<?> name) {
return new EsiaUser(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public EsiaUser where(Condition condition) {
return new EsiaUser(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public EsiaUser where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public EsiaUser where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public EsiaUser where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public EsiaUser where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public EsiaUser where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public EsiaUser where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public EsiaUser where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public EsiaUser whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public EsiaUser whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,315 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccount.UserAccountPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserGroup.UserGroupPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.LinkUserAccountUserGroupRecord;
import java.sql.Timestamp;
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;
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 LinkUserAccountUserGroup extends TableImpl<LinkUserAccountUserGroupRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of
* <code>security.link_user_account_user_group</code>
*/
public static final LinkUserAccountUserGroup LINK_USER_ACCOUNT_USER_GROUP = new LinkUserAccountUserGroup();
/**
* The class holding records for this type
*/
@Override
public Class<LinkUserAccountUserGroupRecord> getRecordType() {
return LinkUserAccountUserGroupRecord.class;
}
/**
* The column
* <code>security.link_user_account_user_group.link_user_account_user_group_id</code>.
*/
public final TableField<LinkUserAccountUserGroupRecord, String> LINK_USER_ACCOUNT_USER_GROUP_ID = createField(DSL.name("link_user_account_user_group_id"), SQLDataType.CHAR(36).nullable(false).defaultValue(DSL.field(DSL.raw("uuid_generate_v4()"), SQLDataType.CHAR)), this, "");
/**
* The column
* <code>security.link_user_account_user_group.user_account_id</code>.
*/
public final TableField<LinkUserAccountUserGroupRecord, String> USER_ACCOUNT_ID = createField(DSL.name("user_account_id"), SQLDataType.VARCHAR(150).nullable(false), this, "");
/**
* The column
* <code>security.link_user_account_user_group.user_group_id</code>.
*/
public final TableField<LinkUserAccountUserGroupRecord, String> USER_GROUP_ID = createField(DSL.name("user_group_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.link_user_account_user_group.created</code>.
*/
public final TableField<LinkUserAccountUserGroupRecord, Timestamp> CREATED = createField(DSL.name("created"), SQLDataType.TIMESTAMP(0).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
private LinkUserAccountUserGroup(Name alias, Table<LinkUserAccountUserGroupRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private LinkUserAccountUserGroup(Name alias, Table<LinkUserAccountUserGroupRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.link_user_account_user_group</code>
* table reference
*/
public LinkUserAccountUserGroup(String alias) {
this(DSL.name(alias), LINK_USER_ACCOUNT_USER_GROUP);
}
/**
* Create an aliased <code>security.link_user_account_user_group</code>
* table reference
*/
public LinkUserAccountUserGroup(Name alias) {
this(alias, LINK_USER_ACCOUNT_USER_GROUP);
}
/**
* Create a <code>security.link_user_account_user_group</code> table
* reference
*/
public LinkUserAccountUserGroup() {
this(DSL.name("link_user_account_user_group"), null);
}
public <O extends Record> LinkUserAccountUserGroup(Table<O> path, ForeignKey<O, LinkUserAccountUserGroupRecord> childPath, InverseForeignKey<O, LinkUserAccountUserGroupRecord> parentPath) {
super(path, childPath, parentPath, LINK_USER_ACCOUNT_USER_GROUP);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class LinkUserAccountUserGroupPath extends LinkUserAccountUserGroup implements Path<LinkUserAccountUserGroupRecord> {
public <O extends Record> LinkUserAccountUserGroupPath(Table<O> path, ForeignKey<O, LinkUserAccountUserGroupRecord> childPath, InverseForeignKey<O, LinkUserAccountUserGroupRecord> parentPath) {
super(path, childPath, parentPath);
}
private LinkUserAccountUserGroupPath(Name alias, Table<LinkUserAccountUserGroupRecord> aliased) {
super(alias, aliased);
}
@Override
public LinkUserAccountUserGroupPath as(String alias) {
return new LinkUserAccountUserGroupPath(DSL.name(alias), this);
}
@Override
public LinkUserAccountUserGroupPath as(Name alias) {
return new LinkUserAccountUserGroupPath(alias, this);
}
@Override
public LinkUserAccountUserGroupPath as(Table<?> alias) {
return new LinkUserAccountUserGroupPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<LinkUserAccountUserGroupRecord> getPrimaryKey() {
return Keys.PK_USER_GROUP;
}
@Override
public List<UniqueKey<LinkUserAccountUserGroupRecord>> getUniqueKeys() {
return Arrays.asList(Keys.UNI_USER_GROUP);
}
@Override
public List<ForeignKey<LinkUserAccountUserGroupRecord, ?>> getReferences() {
return Arrays.asList(Keys.LINK_USER_ACCOUNT_USER_GROUP__FK_USER_GROUP_USER, Keys.LINK_USER_ACCOUNT_USER_GROUP__FK_USER_GROUP_GROUP);
}
private transient UserAccountPath _userAccount;
/**
* Get the implicit join path to the <code>security.user_account</code>
* table.
*/
public UserAccountPath userAccount() {
if (_userAccount == null)
_userAccount = new UserAccountPath(this, Keys.LINK_USER_ACCOUNT_USER_GROUP__FK_USER_GROUP_USER, null);
return _userAccount;
}
private transient UserGroupPath _userGroup;
/**
* Get the implicit join path to the <code>security.user_group</code> table.
*/
public UserGroupPath userGroup() {
if (_userGroup == null)
_userGroup = new UserGroupPath(this, Keys.LINK_USER_ACCOUNT_USER_GROUP__FK_USER_GROUP_GROUP, null);
return _userGroup;
}
@Override
public LinkUserAccountUserGroup as(String alias) {
return new LinkUserAccountUserGroup(DSL.name(alias), this);
}
@Override
public LinkUserAccountUserGroup as(Name alias) {
return new LinkUserAccountUserGroup(alias, this);
}
@Override
public LinkUserAccountUserGroup as(Table<?> alias) {
return new LinkUserAccountUserGroup(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public LinkUserAccountUserGroup rename(String name) {
return new LinkUserAccountUserGroup(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public LinkUserAccountUserGroup rename(Name name) {
return new LinkUserAccountUserGroup(name, null);
}
/**
* Rename this table
*/
@Override
public LinkUserAccountUserGroup rename(Table<?> name) {
return new LinkUserAccountUserGroup(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserAccountUserGroup where(Condition condition) {
return new LinkUserAccountUserGroup(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserAccountUserGroup where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserAccountUserGroup where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserAccountUserGroup where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserAccountUserGroup where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserAccountUserGroup where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserAccountUserGroup where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserAccountUserGroup where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserAccountUserGroup whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserAccountUserGroup whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,310 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserGroup.UserGroupPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserRole.UserRolePath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.LinkUserGroupUserRoleRecord;
import java.sql.Timestamp;
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;
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 LinkUserGroupUserRole extends TableImpl<LinkUserGroupUserRoleRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.link_user_group_user_role</code>
*/
public static final LinkUserGroupUserRole LINK_USER_GROUP_USER_ROLE = new LinkUserGroupUserRole();
/**
* The class holding records for this type
*/
@Override
public Class<LinkUserGroupUserRoleRecord> getRecordType() {
return LinkUserGroupUserRoleRecord.class;
}
/**
* The column
* <code>security.link_user_group_user_role.link_user_group_user_role_id</code>.
*/
public final TableField<LinkUserGroupUserRoleRecord, String> LINK_USER_GROUP_USER_ROLE_ID = createField(DSL.name("link_user_group_user_role_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.link_user_group_user_role.user_group_id</code>.
*/
public final TableField<LinkUserGroupUserRoleRecord, String> USER_GROUP_ID = createField(DSL.name("user_group_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.link_user_group_user_role.user_role_id</code>.
*/
public final TableField<LinkUserGroupUserRoleRecord, String> USER_ROLE_ID = createField(DSL.name("user_role_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.link_user_group_user_role.created</code>.
*/
public final TableField<LinkUserGroupUserRoleRecord, Timestamp> CREATED = createField(DSL.name("created"), SQLDataType.TIMESTAMP(0).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
private LinkUserGroupUserRole(Name alias, Table<LinkUserGroupUserRoleRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private LinkUserGroupUserRole(Name alias, Table<LinkUserGroupUserRoleRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.link_user_group_user_role</code> table
* reference
*/
public LinkUserGroupUserRole(String alias) {
this(DSL.name(alias), LINK_USER_GROUP_USER_ROLE);
}
/**
* Create an aliased <code>security.link_user_group_user_role</code> table
* reference
*/
public LinkUserGroupUserRole(Name alias) {
this(alias, LINK_USER_GROUP_USER_ROLE);
}
/**
* Create a <code>security.link_user_group_user_role</code> table reference
*/
public LinkUserGroupUserRole() {
this(DSL.name("link_user_group_user_role"), null);
}
public <O extends Record> LinkUserGroupUserRole(Table<O> path, ForeignKey<O, LinkUserGroupUserRoleRecord> childPath, InverseForeignKey<O, LinkUserGroupUserRoleRecord> parentPath) {
super(path, childPath, parentPath, LINK_USER_GROUP_USER_ROLE);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class LinkUserGroupUserRolePath extends LinkUserGroupUserRole implements Path<LinkUserGroupUserRoleRecord> {
public <O extends Record> LinkUserGroupUserRolePath(Table<O> path, ForeignKey<O, LinkUserGroupUserRoleRecord> childPath, InverseForeignKey<O, LinkUserGroupUserRoleRecord> parentPath) {
super(path, childPath, parentPath);
}
private LinkUserGroupUserRolePath(Name alias, Table<LinkUserGroupUserRoleRecord> aliased) {
super(alias, aliased);
}
@Override
public LinkUserGroupUserRolePath as(String alias) {
return new LinkUserGroupUserRolePath(DSL.name(alias), this);
}
@Override
public LinkUserGroupUserRolePath as(Name alias) {
return new LinkUserGroupUserRolePath(alias, this);
}
@Override
public LinkUserGroupUserRolePath as(Table<?> alias) {
return new LinkUserGroupUserRolePath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<LinkUserGroupUserRoleRecord> getPrimaryKey() {
return Keys.PK_GROUP_ROLE;
}
@Override
public List<UniqueKey<LinkUserGroupUserRoleRecord>> getUniqueKeys() {
return Arrays.asList(Keys.UNI_GROUP_ROLE);
}
@Override
public List<ForeignKey<LinkUserGroupUserRoleRecord, ?>> getReferences() {
return Arrays.asList(Keys.LINK_USER_GROUP_USER_ROLE__FK_GROUP_ROLE_GROUP, Keys.LINK_USER_GROUP_USER_ROLE__FK_GROUP_ROLE_ROLE);
}
private transient UserGroupPath _userGroup;
/**
* Get the implicit join path to the <code>security.user_group</code> table.
*/
public UserGroupPath userGroup() {
if (_userGroup == null)
_userGroup = new UserGroupPath(this, Keys.LINK_USER_GROUP_USER_ROLE__FK_GROUP_ROLE_GROUP, null);
return _userGroup;
}
private transient UserRolePath _userRole;
/**
* Get the implicit join path to the <code>security.user_role</code> table.
*/
public UserRolePath userRole() {
if (_userRole == null)
_userRole = new UserRolePath(this, Keys.LINK_USER_GROUP_USER_ROLE__FK_GROUP_ROLE_ROLE, null);
return _userRole;
}
@Override
public LinkUserGroupUserRole as(String alias) {
return new LinkUserGroupUserRole(DSL.name(alias), this);
}
@Override
public LinkUserGroupUserRole as(Name alias) {
return new LinkUserGroupUserRole(alias, this);
}
@Override
public LinkUserGroupUserRole as(Table<?> alias) {
return new LinkUserGroupUserRole(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public LinkUserGroupUserRole rename(String name) {
return new LinkUserGroupUserRole(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public LinkUserGroupUserRole rename(Name name) {
return new LinkUserGroupUserRole(name, null);
}
/**
* Rename this table
*/
@Override
public LinkUserGroupUserRole rename(Table<?> name) {
return new LinkUserGroupUserRole(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserGroupUserRole where(Condition condition) {
return new LinkUserGroupUserRole(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserGroupUserRole where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserGroupUserRole where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserGroupUserRole where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserGroupUserRole where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserGroupUserRole where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserGroupUserRole where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserGroupUserRole where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserGroupUserRole whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserGroupUserRole whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,310 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Authority.AuthorityPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserRole.UserRolePath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.LinkUserRoleAuthorityRecord;
import java.sql.Timestamp;
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;
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 LinkUserRoleAuthority extends TableImpl<LinkUserRoleAuthorityRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.link_user_role_authority</code>
*/
public static final LinkUserRoleAuthority LINK_USER_ROLE_AUTHORITY = new LinkUserRoleAuthority();
/**
* The class holding records for this type
*/
@Override
public Class<LinkUserRoleAuthorityRecord> getRecordType() {
return LinkUserRoleAuthorityRecord.class;
}
/**
* The column
* <code>security.link_user_role_authority.user_role_authority_id</code>.
*/
public final TableField<LinkUserRoleAuthorityRecord, String> USER_ROLE_AUTHORITY_ID = createField(DSL.name("user_role_authority_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.link_user_role_authority.user_role_id</code>.
*/
public final TableField<LinkUserRoleAuthorityRecord, String> USER_ROLE_ID = createField(DSL.name("user_role_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.link_user_role_authority.authority_id</code>.
*/
public final TableField<LinkUserRoleAuthorityRecord, String> AUTHORITY_ID = createField(DSL.name("authority_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.link_user_role_authority.created</code>.
*/
public final TableField<LinkUserRoleAuthorityRecord, Timestamp> CREATED = createField(DSL.name("created"), SQLDataType.TIMESTAMP(0).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
private LinkUserRoleAuthority(Name alias, Table<LinkUserRoleAuthorityRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private LinkUserRoleAuthority(Name alias, Table<LinkUserRoleAuthorityRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.link_user_role_authority</code> table
* reference
*/
public LinkUserRoleAuthority(String alias) {
this(DSL.name(alias), LINK_USER_ROLE_AUTHORITY);
}
/**
* Create an aliased <code>security.link_user_role_authority</code> table
* reference
*/
public LinkUserRoleAuthority(Name alias) {
this(alias, LINK_USER_ROLE_AUTHORITY);
}
/**
* Create a <code>security.link_user_role_authority</code> table reference
*/
public LinkUserRoleAuthority() {
this(DSL.name("link_user_role_authority"), null);
}
public <O extends Record> LinkUserRoleAuthority(Table<O> path, ForeignKey<O, LinkUserRoleAuthorityRecord> childPath, InverseForeignKey<O, LinkUserRoleAuthorityRecord> parentPath) {
super(path, childPath, parentPath, LINK_USER_ROLE_AUTHORITY);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class LinkUserRoleAuthorityPath extends LinkUserRoleAuthority implements Path<LinkUserRoleAuthorityRecord> {
public <O extends Record> LinkUserRoleAuthorityPath(Table<O> path, ForeignKey<O, LinkUserRoleAuthorityRecord> childPath, InverseForeignKey<O, LinkUserRoleAuthorityRecord> parentPath) {
super(path, childPath, parentPath);
}
private LinkUserRoleAuthorityPath(Name alias, Table<LinkUserRoleAuthorityRecord> aliased) {
super(alias, aliased);
}
@Override
public LinkUserRoleAuthorityPath as(String alias) {
return new LinkUserRoleAuthorityPath(DSL.name(alias), this);
}
@Override
public LinkUserRoleAuthorityPath as(Name alias) {
return new LinkUserRoleAuthorityPath(alias, this);
}
@Override
public LinkUserRoleAuthorityPath as(Table<?> alias) {
return new LinkUserRoleAuthorityPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<LinkUserRoleAuthorityRecord> getPrimaryKey() {
return Keys.PK_ROLE_AUTHORITY;
}
@Override
public List<UniqueKey<LinkUserRoleAuthorityRecord>> getUniqueKeys() {
return Arrays.asList(Keys.UNI_ROLE_AUTHORITY);
}
@Override
public List<ForeignKey<LinkUserRoleAuthorityRecord, ?>> getReferences() {
return Arrays.asList(Keys.LINK_USER_ROLE_AUTHORITY__FK_ROLE_AUTHORITY_ROLE, Keys.LINK_USER_ROLE_AUTHORITY__FK_ROLE_AUTHORITY_AUTHORITY);
}
private transient UserRolePath _userRole;
/**
* Get the implicit join path to the <code>security.user_role</code> table.
*/
public UserRolePath userRole() {
if (_userRole == null)
_userRole = new UserRolePath(this, Keys.LINK_USER_ROLE_AUTHORITY__FK_ROLE_AUTHORITY_ROLE, null);
return _userRole;
}
private transient AuthorityPath _authority;
/**
* Get the implicit join path to the <code>security.authority</code> table.
*/
public AuthorityPath authority() {
if (_authority == null)
_authority = new AuthorityPath(this, Keys.LINK_USER_ROLE_AUTHORITY__FK_ROLE_AUTHORITY_AUTHORITY, null);
return _authority;
}
@Override
public LinkUserRoleAuthority as(String alias) {
return new LinkUserRoleAuthority(DSL.name(alias), this);
}
@Override
public LinkUserRoleAuthority as(Name alias) {
return new LinkUserRoleAuthority(alias, this);
}
@Override
public LinkUserRoleAuthority as(Table<?> alias) {
return new LinkUserRoleAuthority(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public LinkUserRoleAuthority rename(String name) {
return new LinkUserRoleAuthority(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public LinkUserRoleAuthority rename(Name name) {
return new LinkUserRoleAuthority(name, null);
}
/**
* Rename this table
*/
@Override
public LinkUserRoleAuthority rename(Table<?> name) {
return new LinkUserRoleAuthority(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserRoleAuthority where(Condition condition) {
return new LinkUserRoleAuthority(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserRoleAuthority where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserRoleAuthority where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserRoleAuthority where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserRoleAuthority where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserRoleAuthority where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserRoleAuthority where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public LinkUserRoleAuthority where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserRoleAuthority whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public LinkUserRoleAuthority whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,312 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.OrgUnit.OrgUnitPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccount.UserAccountPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.OrgUnitRecord;
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;
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 OrgUnit extends TableImpl<OrgUnitRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.org_unit</code>
*/
public static final OrgUnit ORG_UNIT = new OrgUnit();
/**
* The class holding records for this type
*/
@Override
public Class<OrgUnitRecord> getRecordType() {
return OrgUnitRecord.class;
}
/**
* The column <code>security.org_unit.id</code>.
*/
public final TableField<OrgUnitRecord, String> ID = createField(DSL.name("id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.org_unit.name</code>.
*/
public final TableField<OrgUnitRecord, String> NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(1000).nullable(false), this, "");
/**
* The column <code>security.org_unit.code</code>.
*/
public final TableField<OrgUnitRecord, String> CODE = createField(DSL.name("code"), SQLDataType.VARCHAR(50).nullable(false), this, "");
/**
* The column <code>security.org_unit.parent_id</code>.
*/
public final TableField<OrgUnitRecord, String> PARENT_ID = createField(DSL.name("parent_id"), SQLDataType.CHAR(36), this, "");
/**
* The column <code>security.org_unit.removed</code>.
*/
public final TableField<OrgUnitRecord, Boolean> REMOVED = createField(DSL.name("removed"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, "");
private OrgUnit(Name alias, Table<OrgUnitRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private OrgUnit(Name alias, Table<OrgUnitRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.org_unit</code> table reference
*/
public OrgUnit(String alias) {
this(DSL.name(alias), ORG_UNIT);
}
/**
* Create an aliased <code>security.org_unit</code> table reference
*/
public OrgUnit(Name alias) {
this(alias, ORG_UNIT);
}
/**
* Create a <code>security.org_unit</code> table reference
*/
public OrgUnit() {
this(DSL.name("org_unit"), null);
}
public <O extends Record> OrgUnit(Table<O> path, ForeignKey<O, OrgUnitRecord> childPath, InverseForeignKey<O, OrgUnitRecord> parentPath) {
super(path, childPath, parentPath, ORG_UNIT);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class OrgUnitPath extends OrgUnit implements Path<OrgUnitRecord> {
public <O extends Record> OrgUnitPath(Table<O> path, ForeignKey<O, OrgUnitRecord> childPath, InverseForeignKey<O, OrgUnitRecord> parentPath) {
super(path, childPath, parentPath);
}
private OrgUnitPath(Name alias, Table<OrgUnitRecord> aliased) {
super(alias, aliased);
}
@Override
public OrgUnitPath as(String alias) {
return new OrgUnitPath(DSL.name(alias), this);
}
@Override
public OrgUnitPath as(Name alias) {
return new OrgUnitPath(alias, this);
}
@Override
public OrgUnitPath as(Table<?> alias) {
return new OrgUnitPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<OrgUnitRecord> getPrimaryKey() {
return Keys.PK_ORG_UNIT;
}
@Override
public List<UniqueKey<OrgUnitRecord>> getUniqueKeys() {
return Arrays.asList(Keys.ORG_UNIT_CODE_KEY);
}
@Override
public List<ForeignKey<OrgUnitRecord, ?>> getReferences() {
return Arrays.asList(Keys.ORG_UNIT__FK_ORG_UNIT_PARENT_ID);
}
private transient OrgUnitPath _orgUnit;
/**
* Get the implicit join path to the <code>security.org_unit</code> table.
*/
public OrgUnitPath orgUnit() {
if (_orgUnit == null)
_orgUnit = new OrgUnitPath(this, Keys.ORG_UNIT__FK_ORG_UNIT_PARENT_ID, null);
return _orgUnit;
}
private transient UserAccountPath _userAccount;
/**
* Get the implicit to-many join path to the
* <code>security.user_account</code> table
*/
public UserAccountPath userAccount() {
if (_userAccount == null)
_userAccount = new UserAccountPath(this, null, Keys.USER_ACCOUNT__FK_USER_ORG_UNIT_ID.getInverseKey());
return _userAccount;
}
@Override
public OrgUnit as(String alias) {
return new OrgUnit(DSL.name(alias), this);
}
@Override
public OrgUnit as(Name alias) {
return new OrgUnit(alias, this);
}
@Override
public OrgUnit as(Table<?> alias) {
return new OrgUnit(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public OrgUnit rename(String name) {
return new OrgUnit(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public OrgUnit rename(Name name) {
return new OrgUnit(name, null);
}
/**
* Rename this table
*/
@Override
public OrgUnit rename(Table<?> name) {
return new OrgUnit(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public OrgUnit where(Condition condition) {
return new OrgUnit(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public OrgUnit where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public OrgUnit where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public OrgUnit where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public OrgUnit where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public OrgUnit where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public OrgUnit where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public OrgUnit where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public OrgUnit whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public OrgUnit whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,225 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.OrgUnitAdditionalInfoRecord;
import java.util.Collection;
import org.jooq.Condition;
import org.jooq.Field;
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 OrgUnitAdditionalInfo extends TableImpl<OrgUnitAdditionalInfoRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.org_unit_additional_info</code>
*/
public static final OrgUnitAdditionalInfo ORG_UNIT_ADDITIONAL_INFO = new OrgUnitAdditionalInfo();
/**
* The class holding records for this type
*/
@Override
public Class<OrgUnitAdditionalInfoRecord> getRecordType() {
return OrgUnitAdditionalInfoRecord.class;
}
/**
* The column <code>security.org_unit_additional_info.id</code>.
*/
public final TableField<OrgUnitAdditionalInfoRecord, String> ID = createField(DSL.name("id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.org_unit_additional_info.schema</code>.
*/
public final TableField<OrgUnitAdditionalInfoRecord, String> SCHEMA = createField(DSL.name("schema"), SQLDataType.VARCHAR(1000).nullable(false), this, "");
private OrgUnitAdditionalInfo(Name alias, Table<OrgUnitAdditionalInfoRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private OrgUnitAdditionalInfo(Name alias, Table<OrgUnitAdditionalInfoRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.org_unit_additional_info</code> table
* reference
*/
public OrgUnitAdditionalInfo(String alias) {
this(DSL.name(alias), ORG_UNIT_ADDITIONAL_INFO);
}
/**
* Create an aliased <code>security.org_unit_additional_info</code> table
* reference
*/
public OrgUnitAdditionalInfo(Name alias) {
this(alias, ORG_UNIT_ADDITIONAL_INFO);
}
/**
* Create a <code>security.org_unit_additional_info</code> table reference
*/
public OrgUnitAdditionalInfo() {
this(DSL.name("org_unit_additional_info"), null);
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<OrgUnitAdditionalInfoRecord> getPrimaryKey() {
return Keys.PK_ORG_UNIT_ADDITIONAL_INFO;
}
@Override
public OrgUnitAdditionalInfo as(String alias) {
return new OrgUnitAdditionalInfo(DSL.name(alias), this);
}
@Override
public OrgUnitAdditionalInfo as(Name alias) {
return new OrgUnitAdditionalInfo(alias, this);
}
@Override
public OrgUnitAdditionalInfo as(Table<?> alias) {
return new OrgUnitAdditionalInfo(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public OrgUnitAdditionalInfo rename(String name) {
return new OrgUnitAdditionalInfo(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public OrgUnitAdditionalInfo rename(Name name) {
return new OrgUnitAdditionalInfo(name, null);
}
/**
* Rename this table
*/
@Override
public OrgUnitAdditionalInfo rename(Table<?> name) {
return new OrgUnitAdditionalInfo(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public OrgUnitAdditionalInfo where(Condition condition) {
return new OrgUnitAdditionalInfo(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public OrgUnitAdditionalInfo where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public OrgUnitAdditionalInfo where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public OrgUnitAdditionalInfo where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public OrgUnitAdditionalInfo where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public OrgUnitAdditionalInfo where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public OrgUnitAdditionalInfo where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public OrgUnitAdditionalInfo where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public OrgUnitAdditionalInfo whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public OrgUnitAdditionalInfo whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,292 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccount.UserAccountPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.SimpleCredentialsRecord;
import java.sql.Timestamp;
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;
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 SimpleCredentials extends TableImpl<SimpleCredentialsRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.simple_credentials</code>
*/
public static final SimpleCredentials SIMPLE_CREDENTIALS = new SimpleCredentials();
/**
* The class holding records for this type
*/
@Override
public Class<SimpleCredentialsRecord> getRecordType() {
return SimpleCredentialsRecord.class;
}
/**
* The column <code>security.simple_credentials.user_account_id</code>.
*/
public final TableField<SimpleCredentialsRecord, String> USER_ACCOUNT_ID = createField(DSL.name("user_account_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.simple_credentials.password</code>.
*/
public final TableField<SimpleCredentialsRecord, String> PASSWORD = createField(DSL.name("password"), SQLDataType.VARCHAR(128).nullable(false), this, "");
/**
* The column <code>security.simple_credentials.password_expires</code>.
*/
public final TableField<SimpleCredentialsRecord, Timestamp> PASSWORD_EXPIRES = createField(DSL.name("password_expires"), SQLDataType.TIMESTAMP(0), this, "");
/**
* The column <code>security.simple_credentials.password_updated</code>.
*/
public final TableField<SimpleCredentialsRecord, Timestamp> PASSWORD_UPDATED = createField(DSL.name("password_updated"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
private SimpleCredentials(Name alias, Table<SimpleCredentialsRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private SimpleCredentials(Name alias, Table<SimpleCredentialsRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.simple_credentials</code> table
* reference
*/
public SimpleCredentials(String alias) {
this(DSL.name(alias), SIMPLE_CREDENTIALS);
}
/**
* Create an aliased <code>security.simple_credentials</code> table
* reference
*/
public SimpleCredentials(Name alias) {
this(alias, SIMPLE_CREDENTIALS);
}
/**
* Create a <code>security.simple_credentials</code> table reference
*/
public SimpleCredentials() {
this(DSL.name("simple_credentials"), null);
}
public <O extends Record> SimpleCredentials(Table<O> path, ForeignKey<O, SimpleCredentialsRecord> childPath, InverseForeignKey<O, SimpleCredentialsRecord> parentPath) {
super(path, childPath, parentPath, SIMPLE_CREDENTIALS);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class SimpleCredentialsPath extends SimpleCredentials implements Path<SimpleCredentialsRecord> {
public <O extends Record> SimpleCredentialsPath(Table<O> path, ForeignKey<O, SimpleCredentialsRecord> childPath, InverseForeignKey<O, SimpleCredentialsRecord> parentPath) {
super(path, childPath, parentPath);
}
private SimpleCredentialsPath(Name alias, Table<SimpleCredentialsRecord> aliased) {
super(alias, aliased);
}
@Override
public SimpleCredentialsPath as(String alias) {
return new SimpleCredentialsPath(DSL.name(alias), this);
}
@Override
public SimpleCredentialsPath as(Name alias) {
return new SimpleCredentialsPath(alias, this);
}
@Override
public SimpleCredentialsPath as(Table<?> alias) {
return new SimpleCredentialsPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<SimpleCredentialsRecord> getPrimaryKey() {
return Keys.PK_DOMESTIC_USER;
}
@Override
public List<ForeignKey<SimpleCredentialsRecord, ?>> getReferences() {
return Arrays.asList(Keys.SIMPLE_CREDENTIALS__FK_DOMESTIC_USER1);
}
private transient UserAccountPath _userAccount;
/**
* Get the implicit join path to the <code>security.user_account</code>
* table.
*/
public UserAccountPath userAccount() {
if (_userAccount == null)
_userAccount = new UserAccountPath(this, Keys.SIMPLE_CREDENTIALS__FK_DOMESTIC_USER1, null);
return _userAccount;
}
@Override
public SimpleCredentials as(String alias) {
return new SimpleCredentials(DSL.name(alias), this);
}
@Override
public SimpleCredentials as(Name alias) {
return new SimpleCredentials(alias, this);
}
@Override
public SimpleCredentials as(Table<?> alias) {
return new SimpleCredentials(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public SimpleCredentials rename(String name) {
return new SimpleCredentials(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public SimpleCredentials rename(Name name) {
return new SimpleCredentials(name, null);
}
/**
* Rename this table
*/
@Override
public SimpleCredentials rename(Table<?> name) {
return new SimpleCredentials(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public SimpleCredentials where(Condition condition) {
return new SimpleCredentials(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public SimpleCredentials where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public SimpleCredentials where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public SimpleCredentials where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public SimpleCredentials where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public SimpleCredentials where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public SimpleCredentials where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public SimpleCredentials where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public SimpleCredentials whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public SimpleCredentials whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,437 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.EsiaUser.EsiaUserPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserAccountUserGroup.LinkUserAccountUserGroupPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.OrgUnit.OrgUnitPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.SimpleCredentials.SimpleCredentialsPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountAdditionInfo.UserAccountAdditionInfoPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountRefreshToken.UserAccountRefreshTokenPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountVerification.UserAccountVerificationPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserGroup.UserGroupPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserAccountRecord;
import java.sql.Timestamp;
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;
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 UserAccount extends TableImpl<UserAccountRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.user_account</code>
*/
public static final UserAccount USER_ACCOUNT = new UserAccount();
/**
* The class holding records for this type
*/
@Override
public Class<UserAccountRecord> getRecordType() {
return UserAccountRecord.class;
}
/**
* The column <code>security.user_account.user_account_id</code>.
*/
public final TableField<UserAccountRecord, String> USER_ACCOUNT_ID = createField(DSL.name("user_account_id"), SQLDataType.CHAR(36).nullable(false).defaultValue(DSL.field(DSL.raw("uuid_generate_v4()"), SQLDataType.CHAR)), this, "");
/**
* The column <code>security.user_account.email</code>.
*/
public final TableField<UserAccountRecord, String> EMAIL = createField(DSL.name("email"), SQLDataType.VARCHAR(150).nullable(false), this, "");
/**
* The column <code>security.user_account.first_name</code>.
*/
public final TableField<UserAccountRecord, String> FIRST_NAME = createField(DSL.name("first_name"), SQLDataType.VARCHAR(100).nullable(false), this, "");
/**
* The column <code>security.user_account.last_name</code>.
*/
public final TableField<UserAccountRecord, String> LAST_NAME = createField(DSL.name("last_name"), SQLDataType.VARCHAR(100).nullable(false), this, "");
/**
* The column <code>security.user_account.middle_name</code>.
*/
public final TableField<UserAccountRecord, String> MIDDLE_NAME = createField(DSL.name("middle_name"), SQLDataType.VARCHAR(100), this, "");
/**
* The column <code>security.user_account.created</code>.
*/
public final TableField<UserAccountRecord, Timestamp> CREATED = createField(DSL.name("created"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
/**
* The column <code>security.user_account.updated</code>.
*/
public final TableField<UserAccountRecord, Timestamp> UPDATED = createField(DSL.name("updated"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
/**
* The column <code>security.user_account.locked</code>.
*/
public final TableField<UserAccountRecord, Boolean> LOCKED = createField(DSL.name("locked"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, "");
/**
* The column <code>security.user_account.org_unit_id</code>.
*/
public final TableField<UserAccountRecord, String> ORG_UNIT_ID = createField(DSL.name("org_unit_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.user_account.username</code>.
*/
public final TableField<UserAccountRecord, String> USERNAME = createField(DSL.name("username"), SQLDataType.VARCHAR(150).nullable(false), this, "");
/**
* The column <code>security.user_account.phone</code>.
*/
public final TableField<UserAccountRecord, String> PHONE = createField(DSL.name("phone"), SQLDataType.VARCHAR(16), this, "");
/**
* The column <code>security.user_account.email_confirmed</code>.
*/
public final TableField<UserAccountRecord, Boolean> EMAIL_CONFIRMED = createField(DSL.name("email_confirmed"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("true"), SQLDataType.BOOLEAN)), this, "");
/**
* The column <code>security.user_account.user_source</code>.
*/
public final TableField<UserAccountRecord, String> USER_SOURCE = createField(DSL.name("user_source"), SQLDataType.VARCHAR(20).nullable(false).defaultValue(DSL.field(DSL.raw("'LOCAL'::character varying"), SQLDataType.VARCHAR)), this, "");
/**
* The column <code>security.user_account.source_name</code>.
*/
public final TableField<UserAccountRecord, String> SOURCE_NAME = createField(DSL.name("source_name"), SQLDataType.VARCHAR(20), this, "");
private UserAccount(Name alias, Table<UserAccountRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private UserAccount(Name alias, Table<UserAccountRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.user_account</code> table reference
*/
public UserAccount(String alias) {
this(DSL.name(alias), USER_ACCOUNT);
}
/**
* Create an aliased <code>security.user_account</code> table reference
*/
public UserAccount(Name alias) {
this(alias, USER_ACCOUNT);
}
/**
* Create a <code>security.user_account</code> table reference
*/
public UserAccount() {
this(DSL.name("user_account"), null);
}
public <O extends Record> UserAccount(Table<O> path, ForeignKey<O, UserAccountRecord> childPath, InverseForeignKey<O, UserAccountRecord> parentPath) {
super(path, childPath, parentPath, USER_ACCOUNT);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class UserAccountPath extends UserAccount implements Path<UserAccountRecord> {
public <O extends Record> UserAccountPath(Table<O> path, ForeignKey<O, UserAccountRecord> childPath, InverseForeignKey<O, UserAccountRecord> parentPath) {
super(path, childPath, parentPath);
}
private UserAccountPath(Name alias, Table<UserAccountRecord> aliased) {
super(alias, aliased);
}
@Override
public UserAccountPath as(String alias) {
return new UserAccountPath(DSL.name(alias), this);
}
@Override
public UserAccountPath as(Name alias) {
return new UserAccountPath(alias, this);
}
@Override
public UserAccountPath as(Table<?> alias) {
return new UserAccountPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<UserAccountRecord> getPrimaryKey() {
return Keys.PK_USER;
}
@Override
public List<UniqueKey<UserAccountRecord>> getUniqueKeys() {
return Arrays.asList(Keys.USER_ACCOUNT_USERNAME_UNIQUE);
}
@Override
public List<ForeignKey<UserAccountRecord, ?>> getReferences() {
return Arrays.asList(Keys.USER_ACCOUNT__FK_USER_ORG_UNIT_ID);
}
private transient OrgUnitPath _orgUnit;
/**
* Get the implicit join path to the <code>security.org_unit</code> table.
*/
public OrgUnitPath orgUnit() {
if (_orgUnit == null)
_orgUnit = new OrgUnitPath(this, Keys.USER_ACCOUNT__FK_USER_ORG_UNIT_ID, null);
return _orgUnit;
}
private transient EsiaUserPath _esiaUser;
/**
* Get the implicit to-many join path to the <code>security.esia_user</code>
* table
*/
public EsiaUserPath esiaUser() {
if (_esiaUser == null)
_esiaUser = new EsiaUserPath(this, null, Keys.ESIA_USER__FK_ESIA_USER1.getInverseKey());
return _esiaUser;
}
private transient LinkUserAccountUserGroupPath _linkUserAccountUserGroup;
/**
* Get the implicit to-many join path to the
* <code>security.link_user_account_user_group</code> table
*/
public LinkUserAccountUserGroupPath linkUserAccountUserGroup() {
if (_linkUserAccountUserGroup == null)
_linkUserAccountUserGroup = new LinkUserAccountUserGroupPath(this, null, Keys.LINK_USER_ACCOUNT_USER_GROUP__FK_USER_GROUP_USER.getInverseKey());
return _linkUserAccountUserGroup;
}
private transient SimpleCredentialsPath _simpleCredentials;
/**
* Get the implicit to-many join path to the
* <code>security.simple_credentials</code> table
*/
public SimpleCredentialsPath simpleCredentials() {
if (_simpleCredentials == null)
_simpleCredentials = new SimpleCredentialsPath(this, null, Keys.SIMPLE_CREDENTIALS__FK_DOMESTIC_USER1.getInverseKey());
return _simpleCredentials;
}
private transient UserAccountAdditionInfoPath _userAccountAdditionInfo;
/**
* Get the implicit to-many join path to the
* <code>security.user_account_addition_info</code> table
*/
public UserAccountAdditionInfoPath userAccountAdditionInfo() {
if (_userAccountAdditionInfo == null)
_userAccountAdditionInfo = new UserAccountAdditionInfoPath(this, null, Keys.USER_ACCOUNT_ADDITION_INFO__FK_USER_ACCOUNT_ID.getInverseKey());
return _userAccountAdditionInfo;
}
private transient UserAccountRefreshTokenPath _userAccountRefreshToken;
/**
* Get the implicit to-many join path to the
* <code>security.user_account_refresh_token</code> table
*/
public UserAccountRefreshTokenPath userAccountRefreshToken() {
if (_userAccountRefreshToken == null)
_userAccountRefreshToken = new UserAccountRefreshTokenPath(this, null, Keys.USER_ACCOUNT_REFRESH_TOKEN__FK_USER_ACCOUNT_REFRESH_TOKEN.getInverseKey());
return _userAccountRefreshToken;
}
private transient UserAccountVerificationPath _userAccountVerification;
/**
* Get the implicit to-many join path to the
* <code>security.user_account_verification</code> table
*/
public UserAccountVerificationPath userAccountVerification() {
if (_userAccountVerification == null)
_userAccountVerification = new UserAccountVerificationPath(this, null, Keys.USER_ACCOUNT_VERIFICATION__FK_USER_ACCOUNT_USER_ACCOUNT_VERIFICATION.getInverseKey());
return _userAccountVerification;
}
/**
* Get the implicit many-to-many join path to the
* <code>security.user_group</code> table
*/
public UserGroupPath userGroup() {
return linkUserAccountUserGroup().userGroup();
}
@Override
public UserAccount as(String alias) {
return new UserAccount(DSL.name(alias), this);
}
@Override
public UserAccount as(Name alias) {
return new UserAccount(alias, this);
}
@Override
public UserAccount as(Table<?> alias) {
return new UserAccount(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public UserAccount rename(String name) {
return new UserAccount(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public UserAccount rename(Name name) {
return new UserAccount(name, null);
}
/**
* Rename this table
*/
@Override
public UserAccount rename(Table<?> name) {
return new UserAccount(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccount where(Condition condition) {
return new UserAccount(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccount where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccount where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccount where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccount where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccount where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccount where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccount where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccount whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccount whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,332 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccount.UserAccountPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserAccountAdditionInfoRecord;
import java.sql.Date;
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.Identity;
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;
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 UserAccountAdditionInfo extends TableImpl<UserAccountAdditionInfoRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of
* <code>security.user_account_addition_info</code>
*/
public static final UserAccountAdditionInfo USER_ACCOUNT_ADDITION_INFO = new UserAccountAdditionInfo();
/**
* The class holding records for this type
*/
@Override
public Class<UserAccountAdditionInfoRecord> getRecordType() {
return UserAccountAdditionInfoRecord.class;
}
/**
* The column
* <code>security.user_account_addition_info.user_account_addition_info_id</code>.
*/
public final TableField<UserAccountAdditionInfoRecord, Long> USER_ACCOUNT_ADDITION_INFO_ID = createField(DSL.name("user_account_addition_info_id"), SQLDataType.BIGINT.nullable(false).identity(true), this, "");
/**
* The column
* <code>security.user_account_addition_info.user_account_id</code>.
*/
public final TableField<UserAccountAdditionInfoRecord, String> USER_ACCOUNT_ID = createField(DSL.name("user_account_id"), SQLDataType.VARCHAR(36), this, "");
/**
* The column <code>security.user_account_addition_info.ip_address</code>.
*/
public final TableField<UserAccountAdditionInfoRecord, String> IP_ADDRESS = createField(DSL.name("ip_address"), SQLDataType.VARCHAR(100), this, "");
/**
* The column
* <code>security.user_account_addition_info.job_position_id</code>.
*/
public final TableField<UserAccountAdditionInfoRecord, Long> JOB_POSITION_ID = createField(DSL.name("job_position_id"), SQLDataType.BIGINT, this, "");
/**
* The column <code>security.user_account_addition_info.comment</code>.
*/
public final TableField<UserAccountAdditionInfoRecord, String> COMMENT = createField(DSL.name("comment"), SQLDataType.VARCHAR, this, "");
/**
* The column <code>security.user_account_addition_info.user_loaded</code>.
*/
public final TableField<UserAccountAdditionInfoRecord, Boolean> USER_LOADED = createField(DSL.name("user_loaded"), SQLDataType.BOOLEAN.nullable(false).defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, "");
/**
* The column <code>security.user_account_addition_info.password</code>.
*/
public final TableField<UserAccountAdditionInfoRecord, String> PASSWORD = createField(DSL.name("password"), SQLDataType.VARCHAR, this, "");
/**
* The column <code>security.user_account_addition_info.sex</code>.
*/
public final TableField<UserAccountAdditionInfoRecord, String> SEX = createField(DSL.name("sex"), SQLDataType.VARCHAR, this, "");
/**
* The column <code>security.user_account_addition_info.birth_date</code>.
*/
public final TableField<UserAccountAdditionInfoRecord, Date> BIRTH_DATE = createField(DSL.name("birth_date"), SQLDataType.DATE, this, "");
/**
* The column <code>security.user_account_addition_info.snils</code>.
*/
public final TableField<UserAccountAdditionInfoRecord, String> SNILS = createField(DSL.name("snils"), SQLDataType.VARCHAR, this, "");
private UserAccountAdditionInfo(Name alias, Table<UserAccountAdditionInfoRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private UserAccountAdditionInfo(Name alias, Table<UserAccountAdditionInfoRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.user_account_addition_info</code> table
* reference
*/
public UserAccountAdditionInfo(String alias) {
this(DSL.name(alias), USER_ACCOUNT_ADDITION_INFO);
}
/**
* Create an aliased <code>security.user_account_addition_info</code> table
* reference
*/
public UserAccountAdditionInfo(Name alias) {
this(alias, USER_ACCOUNT_ADDITION_INFO);
}
/**
* Create a <code>security.user_account_addition_info</code> table reference
*/
public UserAccountAdditionInfo() {
this(DSL.name("user_account_addition_info"), null);
}
public <O extends Record> UserAccountAdditionInfo(Table<O> path, ForeignKey<O, UserAccountAdditionInfoRecord> childPath, InverseForeignKey<O, UserAccountAdditionInfoRecord> parentPath) {
super(path, childPath, parentPath, USER_ACCOUNT_ADDITION_INFO);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class UserAccountAdditionInfoPath extends UserAccountAdditionInfo implements Path<UserAccountAdditionInfoRecord> {
public <O extends Record> UserAccountAdditionInfoPath(Table<O> path, ForeignKey<O, UserAccountAdditionInfoRecord> childPath, InverseForeignKey<O, UserAccountAdditionInfoRecord> parentPath) {
super(path, childPath, parentPath);
}
private UserAccountAdditionInfoPath(Name alias, Table<UserAccountAdditionInfoRecord> aliased) {
super(alias, aliased);
}
@Override
public UserAccountAdditionInfoPath as(String alias) {
return new UserAccountAdditionInfoPath(DSL.name(alias), this);
}
@Override
public UserAccountAdditionInfoPath as(Name alias) {
return new UserAccountAdditionInfoPath(alias, this);
}
@Override
public UserAccountAdditionInfoPath as(Table<?> alias) {
return new UserAccountAdditionInfoPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public Identity<UserAccountAdditionInfoRecord, Long> getIdentity() {
return (Identity<UserAccountAdditionInfoRecord, Long>) super.getIdentity();
}
@Override
public UniqueKey<UserAccountAdditionInfoRecord> getPrimaryKey() {
return Keys.PK_USER_ACCOUNT_ADDITION_INFO;
}
@Override
public List<ForeignKey<UserAccountAdditionInfoRecord, ?>> getReferences() {
return Arrays.asList(Keys.USER_ACCOUNT_ADDITION_INFO__FK_USER_ACCOUNT_ID);
}
private transient UserAccountPath _userAccount;
/**
* Get the implicit join path to the <code>security.user_account</code>
* table.
*/
public UserAccountPath userAccount() {
if (_userAccount == null)
_userAccount = new UserAccountPath(this, Keys.USER_ACCOUNT_ADDITION_INFO__FK_USER_ACCOUNT_ID, null);
return _userAccount;
}
@Override
public UserAccountAdditionInfo as(String alias) {
return new UserAccountAdditionInfo(DSL.name(alias), this);
}
@Override
public UserAccountAdditionInfo as(Name alias) {
return new UserAccountAdditionInfo(alias, this);
}
@Override
public UserAccountAdditionInfo as(Table<?> alias) {
return new UserAccountAdditionInfo(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public UserAccountAdditionInfo rename(String name) {
return new UserAccountAdditionInfo(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public UserAccountAdditionInfo rename(Name name) {
return new UserAccountAdditionInfo(name, null);
}
/**
* Rename this table
*/
@Override
public UserAccountAdditionInfo rename(Table<?> name) {
return new UserAccountAdditionInfo(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountAdditionInfo where(Condition condition) {
return new UserAccountAdditionInfo(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountAdditionInfo where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountAdditionInfo where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountAdditionInfo where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccountAdditionInfo where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccountAdditionInfo where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccountAdditionInfo where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccountAdditionInfo where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountAdditionInfo whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountAdditionInfo whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,302 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccount.UserAccountPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserAccountRefreshTokenRecord;
import java.sql.Timestamp;
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;
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 UserAccountRefreshToken extends TableImpl<UserAccountRefreshTokenRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of
* <code>security.user_account_refresh_token</code>
*/
public static final UserAccountRefreshToken USER_ACCOUNT_REFRESH_TOKEN = new UserAccountRefreshToken();
/**
* The class holding records for this type
*/
@Override
public Class<UserAccountRefreshTokenRecord> getRecordType() {
return UserAccountRefreshTokenRecord.class;
}
/**
* The column
* <code>security.user_account_refresh_token.user_account_refresh_token_id</code>.
*/
public final TableField<UserAccountRefreshTokenRecord, String> USER_ACCOUNT_REFRESH_TOKEN_ID = createField(DSL.name("user_account_refresh_token_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column
* <code>security.user_account_refresh_token.user_account_id</code>.
*/
public final TableField<UserAccountRefreshTokenRecord, String> USER_ACCOUNT_ID = createField(DSL.name("user_account_id"), SQLDataType.CHAR(36), this, "");
/**
* The column
* <code>security.user_account_refresh_token.refresh_token</code>.
*/
public final TableField<UserAccountRefreshTokenRecord, String> REFRESH_TOKEN = createField(DSL.name("refresh_token"), SQLDataType.CLOB, this, "");
/**
* The column <code>security.user_account_refresh_token.access_token</code>.
*/
public final TableField<UserAccountRefreshTokenRecord, String> ACCESS_TOKEN = createField(DSL.name("access_token"), SQLDataType.CLOB, this, "");
/**
* The column
* <code>security.user_account_refresh_token.expiration_time</code>.
*/
public final TableField<UserAccountRefreshTokenRecord, Timestamp> EXPIRATION_TIME = createField(DSL.name("expiration_time"), SQLDataType.TIMESTAMP(0), this, "");
private UserAccountRefreshToken(Name alias, Table<UserAccountRefreshTokenRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private UserAccountRefreshToken(Name alias, Table<UserAccountRefreshTokenRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.user_account_refresh_token</code> table
* reference
*/
public UserAccountRefreshToken(String alias) {
this(DSL.name(alias), USER_ACCOUNT_REFRESH_TOKEN);
}
/**
* Create an aliased <code>security.user_account_refresh_token</code> table
* reference
*/
public UserAccountRefreshToken(Name alias) {
this(alias, USER_ACCOUNT_REFRESH_TOKEN);
}
/**
* Create a <code>security.user_account_refresh_token</code> table reference
*/
public UserAccountRefreshToken() {
this(DSL.name("user_account_refresh_token"), null);
}
public <O extends Record> UserAccountRefreshToken(Table<O> path, ForeignKey<O, UserAccountRefreshTokenRecord> childPath, InverseForeignKey<O, UserAccountRefreshTokenRecord> parentPath) {
super(path, childPath, parentPath, USER_ACCOUNT_REFRESH_TOKEN);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class UserAccountRefreshTokenPath extends UserAccountRefreshToken implements Path<UserAccountRefreshTokenRecord> {
public <O extends Record> UserAccountRefreshTokenPath(Table<O> path, ForeignKey<O, UserAccountRefreshTokenRecord> childPath, InverseForeignKey<O, UserAccountRefreshTokenRecord> parentPath) {
super(path, childPath, parentPath);
}
private UserAccountRefreshTokenPath(Name alias, Table<UserAccountRefreshTokenRecord> aliased) {
super(alias, aliased);
}
@Override
public UserAccountRefreshTokenPath as(String alias) {
return new UserAccountRefreshTokenPath(DSL.name(alias), this);
}
@Override
public UserAccountRefreshTokenPath as(Name alias) {
return new UserAccountRefreshTokenPath(alias, this);
}
@Override
public UserAccountRefreshTokenPath as(Table<?> alias) {
return new UserAccountRefreshTokenPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<UserAccountRefreshTokenRecord> getPrimaryKey() {
return Keys.PK_USER_ACCOUNT_REFRESH_TOKEN;
}
@Override
public List<ForeignKey<UserAccountRefreshTokenRecord, ?>> getReferences() {
return Arrays.asList(Keys.USER_ACCOUNT_REFRESH_TOKEN__FK_USER_ACCOUNT_REFRESH_TOKEN);
}
private transient UserAccountPath _userAccount;
/**
* Get the implicit join path to the <code>security.user_account</code>
* table.
*/
public UserAccountPath userAccount() {
if (_userAccount == null)
_userAccount = new UserAccountPath(this, Keys.USER_ACCOUNT_REFRESH_TOKEN__FK_USER_ACCOUNT_REFRESH_TOKEN, null);
return _userAccount;
}
@Override
public UserAccountRefreshToken as(String alias) {
return new UserAccountRefreshToken(DSL.name(alias), this);
}
@Override
public UserAccountRefreshToken as(Name alias) {
return new UserAccountRefreshToken(alias, this);
}
@Override
public UserAccountRefreshToken as(Table<?> alias) {
return new UserAccountRefreshToken(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public UserAccountRefreshToken rename(String name) {
return new UserAccountRefreshToken(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public UserAccountRefreshToken rename(Name name) {
return new UserAccountRefreshToken(name, null);
}
/**
* Rename this table
*/
@Override
public UserAccountRefreshToken rename(Table<?> name) {
return new UserAccountRefreshToken(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountRefreshToken where(Condition condition) {
return new UserAccountRefreshToken(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountRefreshToken where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountRefreshToken where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountRefreshToken where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccountRefreshToken where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccountRefreshToken where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccountRefreshToken where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccountRefreshToken where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountRefreshToken whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountRefreshToken whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,288 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccount.UserAccountPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserAccountVerificationRecord;
import java.sql.Timestamp;
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;
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 UserAccountVerification extends TableImpl<UserAccountVerificationRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.user_account_verification</code>
*/
public static final UserAccountVerification USER_ACCOUNT_VERIFICATION = new UserAccountVerification();
/**
* The class holding records for this type
*/
@Override
public Class<UserAccountVerificationRecord> getRecordType() {
return UserAccountVerificationRecord.class;
}
/**
* The column
* <code>security.user_account_verification.user_account_id</code>.
*/
public final TableField<UserAccountVerificationRecord, String> USER_ACCOUNT_ID = createField(DSL.name("user_account_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.user_account_verification.token</code>.
*/
public final TableField<UserAccountVerificationRecord, String> TOKEN = createField(DSL.name("token"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.user_account_verification.created</code>.
*/
public final TableField<UserAccountVerificationRecord, Timestamp> CREATED = createField(DSL.name("created"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
private UserAccountVerification(Name alias, Table<UserAccountVerificationRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private UserAccountVerification(Name alias, Table<UserAccountVerificationRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.user_account_verification</code> table
* reference
*/
public UserAccountVerification(String alias) {
this(DSL.name(alias), USER_ACCOUNT_VERIFICATION);
}
/**
* Create an aliased <code>security.user_account_verification</code> table
* reference
*/
public UserAccountVerification(Name alias) {
this(alias, USER_ACCOUNT_VERIFICATION);
}
/**
* Create a <code>security.user_account_verification</code> table reference
*/
public UserAccountVerification() {
this(DSL.name("user_account_verification"), null);
}
public <O extends Record> UserAccountVerification(Table<O> path, ForeignKey<O, UserAccountVerificationRecord> childPath, InverseForeignKey<O, UserAccountVerificationRecord> parentPath) {
super(path, childPath, parentPath, USER_ACCOUNT_VERIFICATION);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class UserAccountVerificationPath extends UserAccountVerification implements Path<UserAccountVerificationRecord> {
public <O extends Record> UserAccountVerificationPath(Table<O> path, ForeignKey<O, UserAccountVerificationRecord> childPath, InverseForeignKey<O, UserAccountVerificationRecord> parentPath) {
super(path, childPath, parentPath);
}
private UserAccountVerificationPath(Name alias, Table<UserAccountVerificationRecord> aliased) {
super(alias, aliased);
}
@Override
public UserAccountVerificationPath as(String alias) {
return new UserAccountVerificationPath(DSL.name(alias), this);
}
@Override
public UserAccountVerificationPath as(Name alias) {
return new UserAccountVerificationPath(alias, this);
}
@Override
public UserAccountVerificationPath as(Table<?> alias) {
return new UserAccountVerificationPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<UserAccountVerificationRecord> getPrimaryKey() {
return Keys.PK_USER_ACCOUNT_VERIFICATION;
}
@Override
public List<ForeignKey<UserAccountVerificationRecord, ?>> getReferences() {
return Arrays.asList(Keys.USER_ACCOUNT_VERIFICATION__FK_USER_ACCOUNT_USER_ACCOUNT_VERIFICATION);
}
private transient UserAccountPath _userAccount;
/**
* Get the implicit join path to the <code>security.user_account</code>
* table.
*/
public UserAccountPath userAccount() {
if (_userAccount == null)
_userAccount = new UserAccountPath(this, Keys.USER_ACCOUNT_VERIFICATION__FK_USER_ACCOUNT_USER_ACCOUNT_VERIFICATION, null);
return _userAccount;
}
@Override
public UserAccountVerification as(String alias) {
return new UserAccountVerification(DSL.name(alias), this);
}
@Override
public UserAccountVerification as(Name alias) {
return new UserAccountVerification(alias, this);
}
@Override
public UserAccountVerification as(Table<?> alias) {
return new UserAccountVerification(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public UserAccountVerification rename(String name) {
return new UserAccountVerification(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public UserAccountVerification rename(Name name) {
return new UserAccountVerification(name, null);
}
/**
* Rename this table
*/
@Override
public UserAccountVerification rename(Table<?> name) {
return new UserAccountVerification(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountVerification where(Condition condition) {
return new UserAccountVerification(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountVerification where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountVerification where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountVerification where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccountVerification where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccountVerification where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccountVerification where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserAccountVerification where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountVerification whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserAccountVerification whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,369 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.LinkUserApplicationUserGroup.LinkUserApplicationUserGroupPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.public_.tables.UserApplicationList.UserApplicationListPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.AccessLevel.AccessLevelPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserAccountUserGroup.LinkUserAccountUserGroupPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserGroupUserRole.LinkUserGroupUserRolePath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccount.UserAccountPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserRole.UserRolePath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserGroupRecord;
import java.sql.Timestamp;
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;
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 UserGroup extends TableImpl<UserGroupRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.user_group</code>
*/
public static final UserGroup USER_GROUP = new UserGroup();
/**
* The class holding records for this type
*/
@Override
public Class<UserGroupRecord> getRecordType() {
return UserGroupRecord.class;
}
/**
* The column <code>security.user_group.user_group_id</code>.
*/
public final TableField<UserGroupRecord, String> USER_GROUP_ID = createField(DSL.name("user_group_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.user_group.name</code>.
*/
public final TableField<UserGroupRecord, String> NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column <code>security.user_group.created</code>.
*/
public final TableField<UserGroupRecord, Timestamp> CREATED = createField(DSL.name("created"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
/**
* The column <code>security.user_group.updated</code>.
*/
public final TableField<UserGroupRecord, Timestamp> UPDATED = createField(DSL.name("updated"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
/**
* The column <code>security.user_group.access_level_id</code>.
*/
public final TableField<UserGroupRecord, String> ACCESS_LEVEL_ID = createField(DSL.name("access_level_id"), SQLDataType.CHAR(36).nullable(false), this, "");
private UserGroup(Name alias, Table<UserGroupRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private UserGroup(Name alias, Table<UserGroupRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.user_group</code> table reference
*/
public UserGroup(String alias) {
this(DSL.name(alias), USER_GROUP);
}
/**
* Create an aliased <code>security.user_group</code> table reference
*/
public UserGroup(Name alias) {
this(alias, USER_GROUP);
}
/**
* Create a <code>security.user_group</code> table reference
*/
public UserGroup() {
this(DSL.name("user_group"), null);
}
public <O extends Record> UserGroup(Table<O> path, ForeignKey<O, UserGroupRecord> childPath, InverseForeignKey<O, UserGroupRecord> parentPath) {
super(path, childPath, parentPath, USER_GROUP);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class UserGroupPath extends UserGroup implements Path<UserGroupRecord> {
public <O extends Record> UserGroupPath(Table<O> path, ForeignKey<O, UserGroupRecord> childPath, InverseForeignKey<O, UserGroupRecord> parentPath) {
super(path, childPath, parentPath);
}
private UserGroupPath(Name alias, Table<UserGroupRecord> aliased) {
super(alias, aliased);
}
@Override
public UserGroupPath as(String alias) {
return new UserGroupPath(DSL.name(alias), this);
}
@Override
public UserGroupPath as(Name alias) {
return new UserGroupPath(alias, this);
}
@Override
public UserGroupPath as(Table<?> alias) {
return new UserGroupPath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<UserGroupRecord> getPrimaryKey() {
return Keys.PK_GROUP;
}
@Override
public List<UniqueKey<UserGroupRecord>> getUniqueKeys() {
return Arrays.asList(Keys.UNI_GROUP_NAME);
}
@Override
public List<ForeignKey<UserGroupRecord, ?>> getReferences() {
return Arrays.asList(Keys.USER_GROUP__FK_USER_GROUP_ACCESS_LEVEL);
}
private transient AccessLevelPath _accessLevel;
/**
* Get the implicit join path to the <code>security.access_level</code>
* table.
*/
public AccessLevelPath accessLevel() {
if (_accessLevel == null)
_accessLevel = new AccessLevelPath(this, Keys.USER_GROUP__FK_USER_GROUP_ACCESS_LEVEL, null);
return _accessLevel;
}
private transient LinkUserApplicationUserGroupPath _linkUserApplicationUserGroup;
/**
* Get the implicit to-many join path to the
* <code>public.link_user_application_user_group</code> table
*/
public LinkUserApplicationUserGroupPath linkUserApplicationUserGroup() {
if (_linkUserApplicationUserGroup == null)
_linkUserApplicationUserGroup = new LinkUserApplicationUserGroupPath(this, null, ervu_usr_autority.ervu_usr_autority.db_beans.public_.Keys.LINK_USER_APPLICATION_USER_GROUP__FK_USER_GROUP.getInverseKey());
return _linkUserApplicationUserGroup;
}
private transient LinkUserAccountUserGroupPath _linkUserAccountUserGroup;
/**
* Get the implicit to-many join path to the
* <code>security.link_user_account_user_group</code> table
*/
public LinkUserAccountUserGroupPath linkUserAccountUserGroup() {
if (_linkUserAccountUserGroup == null)
_linkUserAccountUserGroup = new LinkUserAccountUserGroupPath(this, null, Keys.LINK_USER_ACCOUNT_USER_GROUP__FK_USER_GROUP_GROUP.getInverseKey());
return _linkUserAccountUserGroup;
}
private transient LinkUserGroupUserRolePath _linkUserGroupUserRole;
/**
* Get the implicit to-many join path to the
* <code>security.link_user_group_user_role</code> table
*/
public LinkUserGroupUserRolePath linkUserGroupUserRole() {
if (_linkUserGroupUserRole == null)
_linkUserGroupUserRole = new LinkUserGroupUserRolePath(this, null, Keys.LINK_USER_GROUP_USER_ROLE__FK_GROUP_ROLE_GROUP.getInverseKey());
return _linkUserGroupUserRole;
}
/**
* Get the implicit many-to-many join path to the
* <code>public.user_application_list</code> table
*/
public UserApplicationListPath userApplicationList() {
return linkUserApplicationUserGroup().userApplicationList();
}
/**
* Get the implicit many-to-many join path to the
* <code>security.user_account</code> table
*/
public UserAccountPath userAccount() {
return linkUserAccountUserGroup().userAccount();
}
/**
* Get the implicit many-to-many join path to the
* <code>security.user_role</code> table
*/
public UserRolePath userRole() {
return linkUserGroupUserRole().userRole();
}
@Override
public UserGroup as(String alias) {
return new UserGroup(DSL.name(alias), this);
}
@Override
public UserGroup as(Name alias) {
return new UserGroup(alias, this);
}
@Override
public UserGroup as(Table<?> alias) {
return new UserGroup(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public UserGroup rename(String name) {
return new UserGroup(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public UserGroup rename(Name name) {
return new UserGroup(name, null);
}
/**
* Rename this table
*/
@Override
public UserGroup rename(Table<?> name) {
return new UserGroup(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserGroup where(Condition condition) {
return new UserGroup(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserGroup where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserGroup where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserGroup where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserGroup where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserGroup where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserGroup where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserGroup where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserGroup whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserGroup whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,322 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Keys;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.Security;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Authority.AuthorityPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserGroupUserRole.LinkUserGroupUserRolePath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserRoleAuthority.LinkUserRoleAuthorityPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserGroup.UserGroupPath;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records.UserRoleRecord;
import java.sql.Timestamp;
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;
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 UserRole extends TableImpl<UserRoleRecord> {
private static final long serialVersionUID = 1L;
/**
* The reference instance of <code>security.user_role</code>
*/
public static final UserRole USER_ROLE = new UserRole();
/**
* The class holding records for this type
*/
@Override
public Class<UserRoleRecord> getRecordType() {
return UserRoleRecord.class;
}
/**
* The column <code>security.user_role.user_role_id</code>.
*/
public final TableField<UserRoleRecord, String> USER_ROLE_ID = createField(DSL.name("user_role_id"), SQLDataType.CHAR(36).nullable(false), this, "");
/**
* The column <code>security.user_role.name</code>.
*/
public final TableField<UserRoleRecord, String> NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(255).nullable(false), this, "");
/**
* The column <code>security.user_role.created</code>.
*/
public final TableField<UserRoleRecord, Timestamp> CREATED = createField(DSL.name("created"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
/**
* The column <code>security.user_role.updated</code>.
*/
public final TableField<UserRoleRecord, Timestamp> UPDATED = createField(DSL.name("updated"), SQLDataType.TIMESTAMP(0).nullable(false).defaultValue(DSL.field(DSL.raw("now()"), SQLDataType.TIMESTAMP)), this, "");
private UserRole(Name alias, Table<UserRoleRecord> aliased) {
this(alias, aliased, (Field<?>[]) null, null);
}
private UserRole(Name alias, Table<UserRoleRecord> aliased, Field<?>[] parameters, Condition where) {
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
}
/**
* Create an aliased <code>security.user_role</code> table reference
*/
public UserRole(String alias) {
this(DSL.name(alias), USER_ROLE);
}
/**
* Create an aliased <code>security.user_role</code> table reference
*/
public UserRole(Name alias) {
this(alias, USER_ROLE);
}
/**
* Create a <code>security.user_role</code> table reference
*/
public UserRole() {
this(DSL.name("user_role"), null);
}
public <O extends Record> UserRole(Table<O> path, ForeignKey<O, UserRoleRecord> childPath, InverseForeignKey<O, UserRoleRecord> parentPath) {
super(path, childPath, parentPath, USER_ROLE);
}
/**
* A subtype implementing {@link Path} for simplified path-based joins.
*/
public static class UserRolePath extends UserRole implements Path<UserRoleRecord> {
public <O extends Record> UserRolePath(Table<O> path, ForeignKey<O, UserRoleRecord> childPath, InverseForeignKey<O, UserRoleRecord> parentPath) {
super(path, childPath, parentPath);
}
private UserRolePath(Name alias, Table<UserRoleRecord> aliased) {
super(alias, aliased);
}
@Override
public UserRolePath as(String alias) {
return new UserRolePath(DSL.name(alias), this);
}
@Override
public UserRolePath as(Name alias) {
return new UserRolePath(alias, this);
}
@Override
public UserRolePath as(Table<?> alias) {
return new UserRolePath(alias.getQualifiedName(), this);
}
}
@Override
public Schema getSchema() {
return aliased() ? null : Security.SECURITY;
}
@Override
public UniqueKey<UserRoleRecord> getPrimaryKey() {
return Keys.PK_ROLE;
}
@Override
public List<UniqueKey<UserRoleRecord>> getUniqueKeys() {
return Arrays.asList(Keys.UNI_ROLE_NAME);
}
private transient LinkUserGroupUserRolePath _linkUserGroupUserRole;
/**
* Get the implicit to-many join path to the
* <code>security.link_user_group_user_role</code> table
*/
public LinkUserGroupUserRolePath linkUserGroupUserRole() {
if (_linkUserGroupUserRole == null)
_linkUserGroupUserRole = new LinkUserGroupUserRolePath(this, null, Keys.LINK_USER_GROUP_USER_ROLE__FK_GROUP_ROLE_ROLE.getInverseKey());
return _linkUserGroupUserRole;
}
private transient LinkUserRoleAuthorityPath _linkUserRoleAuthority;
/**
* Get the implicit to-many join path to the
* <code>security.link_user_role_authority</code> table
*/
public LinkUserRoleAuthorityPath linkUserRoleAuthority() {
if (_linkUserRoleAuthority == null)
_linkUserRoleAuthority = new LinkUserRoleAuthorityPath(this, null, Keys.LINK_USER_ROLE_AUTHORITY__FK_ROLE_AUTHORITY_ROLE.getInverseKey());
return _linkUserRoleAuthority;
}
/**
* Get the implicit many-to-many join path to the
* <code>security.user_group</code> table
*/
public UserGroupPath userGroup() {
return linkUserGroupUserRole().userGroup();
}
/**
* Get the implicit many-to-many join path to the
* <code>security.authority</code> table
*/
public AuthorityPath authority() {
return linkUserRoleAuthority().authority();
}
@Override
public UserRole as(String alias) {
return new UserRole(DSL.name(alias), this);
}
@Override
public UserRole as(Name alias) {
return new UserRole(alias, this);
}
@Override
public UserRole as(Table<?> alias) {
return new UserRole(alias.getQualifiedName(), this);
}
/**
* Rename this table
*/
@Override
public UserRole rename(String name) {
return new UserRole(DSL.name(name), null);
}
/**
* Rename this table
*/
@Override
public UserRole rename(Name name) {
return new UserRole(name, null);
}
/**
* Rename this table
*/
@Override
public UserRole rename(Table<?> name) {
return new UserRole(name.getQualifiedName(), null);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserRole where(Condition condition) {
return new UserRole(getQualifiedName(), aliased() ? this : null, null, condition);
}
/**
* Create an inline derived table from this table
*/
@Override
public UserRole where(Collection<? extends Condition> conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserRole where(Condition... conditions) {
return where(DSL.and(conditions));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserRole where(Field<Boolean> condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserRole where(SQL condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserRole where(@Stringly.SQL String condition) {
return where(DSL.condition(condition));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserRole where(@Stringly.SQL String condition, Object... binds) {
return where(DSL.condition(condition, binds));
}
/**
* Create an inline derived table from this table
*/
@Override
@PlainSQL
public UserRole where(@Stringly.SQL String condition, QueryPart... parts) {
return where(DSL.condition(condition, parts));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserRole whereExists(Select<?> select) {
return where(DSL.exists(select));
}
/**
* Create an inline derived table from this table
*/
@Override
public UserRole whereNotExists(Select<?> select) {
return where(DSL.notExists(select));
}
}

View file

@ -0,0 +1,94 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.AccessLevel;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class AccessLevelRecord extends UpdatableRecordImpl<AccessLevelRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>security.access_level.access_level_id</code>.
*/
public void setAccessLevelId(String value) {
set(0, value);
}
/**
* Getter for <code>security.access_level.access_level_id</code>.
*/
public String getAccessLevelId() {
return (String) get(0);
}
/**
* Setter for <code>security.access_level.level</code>.
*/
public void setLevel(Short value) {
set(1, value);
}
/**
* Getter for <code>security.access_level.level</code>.
*/
public Short getLevel() {
return (Short) get(1);
}
/**
* Setter for <code>security.access_level.description</code>.
*/
public void setDescription(String value) {
set(2, value);
}
/**
* Getter for <code>security.access_level.description</code>.
*/
public String getDescription() {
return (String) get(2);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached AccessLevelRecord
*/
public AccessLevelRecord() {
super(AccessLevel.ACCESS_LEVEL);
}
/**
* Create a detached, initialised AccessLevelRecord
*/
public AccessLevelRecord(String accessLevelId, Short level, String description) {
super(AccessLevel.ACCESS_LEVEL);
setAccessLevelId(accessLevelId);
setLevel(level);
setDescription(description);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,96 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Authority;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class AuthorityRecord extends UpdatableRecordImpl<AuthorityRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>security.authority.authority_id</code>.
*/
public void setAuthorityId(String value) {
set(0, value);
}
/**
* Getter for <code>security.authority.authority_id</code>.
*/
public String getAuthorityId() {
return (String) get(0);
}
/**
* Setter for <code>security.authority.name</code>.
*/
public void setName(String value) {
set(1, value);
}
/**
* Getter for <code>security.authority.name</code>.
*/
public String getName() {
return (String) get(1);
}
/**
* Setter for <code>security.authority.created</code>.
*/
public void setCreated(Timestamp value) {
set(2, value);
}
/**
* Getter for <code>security.authority.created</code>.
*/
public Timestamp getCreated() {
return (Timestamp) get(2);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached AuthorityRecord
*/
public AuthorityRecord() {
super(Authority.AUTHORITY);
}
/**
* Create a detached, initialised AuthorityRecord
*/
public AuthorityRecord(String authorityId, String name, Timestamp created) {
super(Authority.AUTHORITY);
setAuthorityId(authorityId);
setName(name);
setCreated(created);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,251 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Databasechangelog;
import java.sql.Timestamp;
import org.jooq.impl.TableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DatabasechangelogRecord extends TableRecordImpl<DatabasechangelogRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>security.databasechangelog.id</code>.
*/
public void setId(String value) {
set(0, value);
}
/**
* Getter for <code>security.databasechangelog.id</code>.
*/
public String getId() {
return (String) get(0);
}
/**
* Setter for <code>security.databasechangelog.author</code>.
*/
public void setAuthor(String value) {
set(1, value);
}
/**
* Getter for <code>security.databasechangelog.author</code>.
*/
public String getAuthor() {
return (String) get(1);
}
/**
* Setter for <code>security.databasechangelog.filename</code>.
*/
public void setFilename(String value) {
set(2, value);
}
/**
* Getter for <code>security.databasechangelog.filename</code>.
*/
public String getFilename() {
return (String) get(2);
}
/**
* Setter for <code>security.databasechangelog.dateexecuted</code>.
*/
public void setDateexecuted(Timestamp value) {
set(3, value);
}
/**
* Getter for <code>security.databasechangelog.dateexecuted</code>.
*/
public Timestamp getDateexecuted() {
return (Timestamp) get(3);
}
/**
* Setter for <code>security.databasechangelog.orderexecuted</code>.
*/
public void setOrderexecuted(Integer value) {
set(4, value);
}
/**
* Getter for <code>security.databasechangelog.orderexecuted</code>.
*/
public Integer getOrderexecuted() {
return (Integer) get(4);
}
/**
* Setter for <code>security.databasechangelog.exectype</code>.
*/
public void setExectype(String value) {
set(5, value);
}
/**
* Getter for <code>security.databasechangelog.exectype</code>.
*/
public String getExectype() {
return (String) get(5);
}
/**
* Setter for <code>security.databasechangelog.md5sum</code>.
*/
public void setMd5sum(String value) {
set(6, value);
}
/**
* Getter for <code>security.databasechangelog.md5sum</code>.
*/
public String getMd5sum() {
return (String) get(6);
}
/**
* Setter for <code>security.databasechangelog.description</code>.
*/
public void setDescription(String value) {
set(7, value);
}
/**
* Getter for <code>security.databasechangelog.description</code>.
*/
public String getDescription() {
return (String) get(7);
}
/**
* Setter for <code>security.databasechangelog.comments</code>.
*/
public void setComments(String value) {
set(8, value);
}
/**
* Getter for <code>security.databasechangelog.comments</code>.
*/
public String getComments() {
return (String) get(8);
}
/**
* Setter for <code>security.databasechangelog.tag</code>.
*/
public void setTag(String value) {
set(9, value);
}
/**
* Getter for <code>security.databasechangelog.tag</code>.
*/
public String getTag() {
return (String) get(9);
}
/**
* Setter for <code>security.databasechangelog.liquibase</code>.
*/
public void setLiquibase(String value) {
set(10, value);
}
/**
* Getter for <code>security.databasechangelog.liquibase</code>.
*/
public String getLiquibase() {
return (String) get(10);
}
/**
* Setter for <code>security.databasechangelog.contexts</code>.
*/
public void setContexts(String value) {
set(11, value);
}
/**
* Getter for <code>security.databasechangelog.contexts</code>.
*/
public String getContexts() {
return (String) get(11);
}
/**
* Setter for <code>security.databasechangelog.labels</code>.
*/
public void setLabels(String value) {
set(12, value);
}
/**
* Getter for <code>security.databasechangelog.labels</code>.
*/
public String getLabels() {
return (String) get(12);
}
/**
* Setter for <code>security.databasechangelog.deployment_id</code>.
*/
public void setDeploymentId(String value) {
set(13, value);
}
/**
* Getter for <code>security.databasechangelog.deployment_id</code>.
*/
public String getDeploymentId() {
return (String) get(13);
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached DatabasechangelogRecord
*/
public DatabasechangelogRecord() {
super(Databasechangelog.DATABASECHANGELOG);
}
/**
* Create a detached, initialised DatabasechangelogRecord
*/
public DatabasechangelogRecord(String id, String author, String filename, Timestamp dateexecuted, Integer orderexecuted, String exectype, String md5sum, String description, String comments, String tag, String liquibase, String contexts, String labels, String deploymentId) {
super(Databasechangelog.DATABASECHANGELOG);
setId(id);
setAuthor(author);
setFilename(filename);
setDateexecuted(dateexecuted);
setOrderexecuted(orderexecuted);
setExectype(exectype);
setMd5sum(md5sum);
setDescription(description);
setComments(comments);
setTag(tag);
setLiquibase(liquibase);
setContexts(contexts);
setLabels(labels);
setDeploymentId(deploymentId);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,111 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.Databasechangeloglock;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DatabasechangeloglockRecord extends UpdatableRecordImpl<DatabasechangeloglockRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>security.databasechangeloglock.id</code>.
*/
public void setId(Integer value) {
set(0, value);
}
/**
* Getter for <code>security.databasechangeloglock.id</code>.
*/
public Integer getId() {
return (Integer) get(0);
}
/**
* Setter for <code>security.databasechangeloglock.locked</code>.
*/
public void setLocked(Boolean value) {
set(1, value);
}
/**
* Getter for <code>security.databasechangeloglock.locked</code>.
*/
public Boolean getLocked() {
return (Boolean) get(1);
}
/**
* Setter for <code>security.databasechangeloglock.lockgranted</code>.
*/
public void setLockgranted(Timestamp value) {
set(2, value);
}
/**
* Getter for <code>security.databasechangeloglock.lockgranted</code>.
*/
public Timestamp getLockgranted() {
return (Timestamp) get(2);
}
/**
* Setter for <code>security.databasechangeloglock.lockedby</code>.
*/
public void setLockedby(String value) {
set(3, value);
}
/**
* Getter for <code>security.databasechangeloglock.lockedby</code>.
*/
public String getLockedby() {
return (String) get(3);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Integer> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached DatabasechangeloglockRecord
*/
public DatabasechangeloglockRecord() {
super(Databasechangeloglock.DATABASECHANGELOGLOCK);
}
/**
* Create a detached, initialised DatabasechangeloglockRecord
*/
public DatabasechangeloglockRecord(Integer id, Boolean locked, Timestamp lockgranted, String lockedby) {
super(Databasechangeloglock.DATABASECHANGELOGLOCK);
setId(id);
setLocked(locked);
setLockgranted(lockgranted);
setLockedby(lockedby);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,94 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.EsiaUser;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class EsiaUserRecord extends UpdatableRecordImpl<EsiaUserRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>security.esia_user.esia_user_id</code>.
*/
public void setEsiaUserId(String value) {
set(0, value);
}
/**
* Getter for <code>security.esia_user.esia_user_id</code>.
*/
public String getEsiaUserId() {
return (String) get(0);
}
/**
* Setter for <code>security.esia_user.user_account_id</code>.
*/
public void setUserAccountId(String value) {
set(1, value);
}
/**
* Getter for <code>security.esia_user.user_account_id</code>.
*/
public String getUserAccountId() {
return (String) get(1);
}
/**
* Setter for <code>security.esia_user.person_contact_id</code>.
*/
public void setPersonContactId(Long value) {
set(2, value);
}
/**
* Getter for <code>security.esia_user.person_contact_id</code>.
*/
public Long getPersonContactId() {
return (Long) get(2);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached EsiaUserRecord
*/
public EsiaUserRecord() {
super(EsiaUser.ESIA_USER);
}
/**
* Create a detached, initialised EsiaUserRecord
*/
public EsiaUserRecord(String esiaUserId, String userAccountId, Long personContactId) {
super(EsiaUser.ESIA_USER);
setEsiaUserId(esiaUserId);
setUserAccountId(userAccountId);
setPersonContactId(personContactId);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,117 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserAccountUserGroup;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class LinkUserAccountUserGroupRecord extends UpdatableRecordImpl<LinkUserAccountUserGroupRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for
* <code>security.link_user_account_user_group.link_user_account_user_group_id</code>.
*/
public void setLinkUserAccountUserGroupId(String value) {
set(0, value);
}
/**
* Getter for
* <code>security.link_user_account_user_group.link_user_account_user_group_id</code>.
*/
public String getLinkUserAccountUserGroupId() {
return (String) get(0);
}
/**
* Setter for
* <code>security.link_user_account_user_group.user_account_id</code>.
*/
public void setUserAccountId(String value) {
set(1, value);
}
/**
* Getter for
* <code>security.link_user_account_user_group.user_account_id</code>.
*/
public String getUserAccountId() {
return (String) get(1);
}
/**
* Setter for
* <code>security.link_user_account_user_group.user_group_id</code>.
*/
public void setUserGroupId(String value) {
set(2, value);
}
/**
* Getter for
* <code>security.link_user_account_user_group.user_group_id</code>.
*/
public String getUserGroupId() {
return (String) get(2);
}
/**
* Setter for <code>security.link_user_account_user_group.created</code>.
*/
public void setCreated(Timestamp value) {
set(3, value);
}
/**
* Getter for <code>security.link_user_account_user_group.created</code>.
*/
public Timestamp getCreated() {
return (Timestamp) get(3);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached LinkUserAccountUserGroupRecord
*/
public LinkUserAccountUserGroupRecord() {
super(LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP);
}
/**
* Create a detached, initialised LinkUserAccountUserGroupRecord
*/
public LinkUserAccountUserGroupRecord(String linkUserAccountUserGroupId, String userAccountId, String userGroupId, Timestamp created) {
super(LinkUserAccountUserGroup.LINK_USER_ACCOUNT_USER_GROUP);
setLinkUserAccountUserGroupId(linkUserAccountUserGroupId);
setUserAccountId(userAccountId);
setUserGroupId(userGroupId);
setCreated(created);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,113 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserGroupUserRole;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class LinkUserGroupUserRoleRecord extends UpdatableRecordImpl<LinkUserGroupUserRoleRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for
* <code>security.link_user_group_user_role.link_user_group_user_role_id</code>.
*/
public void setLinkUserGroupUserRoleId(String value) {
set(0, value);
}
/**
* Getter for
* <code>security.link_user_group_user_role.link_user_group_user_role_id</code>.
*/
public String getLinkUserGroupUserRoleId() {
return (String) get(0);
}
/**
* Setter for <code>security.link_user_group_user_role.user_group_id</code>.
*/
public void setUserGroupId(String value) {
set(1, value);
}
/**
* Getter for <code>security.link_user_group_user_role.user_group_id</code>.
*/
public String getUserGroupId() {
return (String) get(1);
}
/**
* Setter for <code>security.link_user_group_user_role.user_role_id</code>.
*/
public void setUserRoleId(String value) {
set(2, value);
}
/**
* Getter for <code>security.link_user_group_user_role.user_role_id</code>.
*/
public String getUserRoleId() {
return (String) get(2);
}
/**
* Setter for <code>security.link_user_group_user_role.created</code>.
*/
public void setCreated(Timestamp value) {
set(3, value);
}
/**
* Getter for <code>security.link_user_group_user_role.created</code>.
*/
public Timestamp getCreated() {
return (Timestamp) get(3);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached LinkUserGroupUserRoleRecord
*/
public LinkUserGroupUserRoleRecord() {
super(LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE);
}
/**
* Create a detached, initialised LinkUserGroupUserRoleRecord
*/
public LinkUserGroupUserRoleRecord(String linkUserGroupUserRoleId, String userGroupId, String userRoleId, Timestamp created) {
super(LinkUserGroupUserRole.LINK_USER_GROUP_USER_ROLE);
setLinkUserGroupUserRoleId(linkUserGroupUserRoleId);
setUserGroupId(userGroupId);
setUserRoleId(userRoleId);
setCreated(created);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,113 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.LinkUserRoleAuthority;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class LinkUserRoleAuthorityRecord extends UpdatableRecordImpl<LinkUserRoleAuthorityRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for
* <code>security.link_user_role_authority.user_role_authority_id</code>.
*/
public void setUserRoleAuthorityId(String value) {
set(0, value);
}
/**
* Getter for
* <code>security.link_user_role_authority.user_role_authority_id</code>.
*/
public String getUserRoleAuthorityId() {
return (String) get(0);
}
/**
* Setter for <code>security.link_user_role_authority.user_role_id</code>.
*/
public void setUserRoleId(String value) {
set(1, value);
}
/**
* Getter for <code>security.link_user_role_authority.user_role_id</code>.
*/
public String getUserRoleId() {
return (String) get(1);
}
/**
* Setter for <code>security.link_user_role_authority.authority_id</code>.
*/
public void setAuthorityId(String value) {
set(2, value);
}
/**
* Getter for <code>security.link_user_role_authority.authority_id</code>.
*/
public String getAuthorityId() {
return (String) get(2);
}
/**
* Setter for <code>security.link_user_role_authority.created</code>.
*/
public void setCreated(Timestamp value) {
set(3, value);
}
/**
* Getter for <code>security.link_user_role_authority.created</code>.
*/
public Timestamp getCreated() {
return (Timestamp) get(3);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached LinkUserRoleAuthorityRecord
*/
public LinkUserRoleAuthorityRecord() {
super(LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY);
}
/**
* Create a detached, initialised LinkUserRoleAuthorityRecord
*/
public LinkUserRoleAuthorityRecord(String userRoleAuthorityId, String userRoleId, String authorityId, Timestamp created) {
super(LinkUserRoleAuthority.LINK_USER_ROLE_AUTHORITY);
setUserRoleAuthorityId(userRoleAuthorityId);
setUserRoleId(userRoleId);
setAuthorityId(authorityId);
setCreated(created);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,79 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.OrgUnitAdditionalInfo;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class OrgUnitAdditionalInfoRecord extends UpdatableRecordImpl<OrgUnitAdditionalInfoRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>security.org_unit_additional_info.id</code>.
*/
public void setId(String value) {
set(0, value);
}
/**
* Getter for <code>security.org_unit_additional_info.id</code>.
*/
public String getId() {
return (String) get(0);
}
/**
* Setter for <code>security.org_unit_additional_info.schema</code>.
*/
public void setSchema(String value) {
set(1, value);
}
/**
* Getter for <code>security.org_unit_additional_info.schema</code>.
*/
public String getSchema() {
return (String) get(1);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached OrgUnitAdditionalInfoRecord
*/
public OrgUnitAdditionalInfoRecord() {
super(OrgUnitAdditionalInfo.ORG_UNIT_ADDITIONAL_INFO);
}
/**
* Create a detached, initialised OrgUnitAdditionalInfoRecord
*/
public OrgUnitAdditionalInfoRecord(String id, String schema) {
super(OrgUnitAdditionalInfo.ORG_UNIT_ADDITIONAL_INFO);
setId(id);
setSchema(schema);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,124 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.OrgUnit;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class OrgUnitRecord extends UpdatableRecordImpl<OrgUnitRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>security.org_unit.id</code>.
*/
public void setId(String value) {
set(0, value);
}
/**
* Getter for <code>security.org_unit.id</code>.
*/
public String getId() {
return (String) get(0);
}
/**
* Setter for <code>security.org_unit.name</code>.
*/
public void setName(String value) {
set(1, value);
}
/**
* Getter for <code>security.org_unit.name</code>.
*/
public String getName() {
return (String) get(1);
}
/**
* Setter for <code>security.org_unit.code</code>.
*/
public void setCode(String value) {
set(2, value);
}
/**
* Getter for <code>security.org_unit.code</code>.
*/
public String getCode() {
return (String) get(2);
}
/**
* Setter for <code>security.org_unit.parent_id</code>.
*/
public void setParentId(String value) {
set(3, value);
}
/**
* Getter for <code>security.org_unit.parent_id</code>.
*/
public String getParentId() {
return (String) get(3);
}
/**
* Setter for <code>security.org_unit.removed</code>.
*/
public void setRemoved(Boolean value) {
set(4, value);
}
/**
* Getter for <code>security.org_unit.removed</code>.
*/
public Boolean getRemoved() {
return (Boolean) get(4);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached OrgUnitRecord
*/
public OrgUnitRecord() {
super(OrgUnit.ORG_UNIT);
}
/**
* Create a detached, initialised OrgUnitRecord
*/
public OrgUnitRecord(String id, String name, String code, String parentId, Boolean removed) {
super(OrgUnit.ORG_UNIT);
setId(id);
setName(name);
setCode(code);
setParentId(parentId);
setRemoved(removed);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,111 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.SimpleCredentials;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class SimpleCredentialsRecord extends UpdatableRecordImpl<SimpleCredentialsRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>security.simple_credentials.user_account_id</code>.
*/
public void setUserAccountId(String value) {
set(0, value);
}
/**
* Getter for <code>security.simple_credentials.user_account_id</code>.
*/
public String getUserAccountId() {
return (String) get(0);
}
/**
* Setter for <code>security.simple_credentials.password</code>.
*/
public void setPassword(String value) {
set(1, value);
}
/**
* Getter for <code>security.simple_credentials.password</code>.
*/
public String getPassword() {
return (String) get(1);
}
/**
* Setter for <code>security.simple_credentials.password_expires</code>.
*/
public void setPasswordExpires(Timestamp value) {
set(2, value);
}
/**
* Getter for <code>security.simple_credentials.password_expires</code>.
*/
public Timestamp getPasswordExpires() {
return (Timestamp) get(2);
}
/**
* Setter for <code>security.simple_credentials.password_updated</code>.
*/
public void setPasswordUpdated(Timestamp value) {
set(3, value);
}
/**
* Getter for <code>security.simple_credentials.password_updated</code>.
*/
public Timestamp getPasswordUpdated() {
return (Timestamp) get(3);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached SimpleCredentialsRecord
*/
public SimpleCredentialsRecord() {
super(SimpleCredentials.SIMPLE_CREDENTIALS);
}
/**
* Create a detached, initialised SimpleCredentialsRecord
*/
public SimpleCredentialsRecord(String userAccountId, String password, Timestamp passwordExpires, Timestamp passwordUpdated) {
super(SimpleCredentials.SIMPLE_CREDENTIALS);
setUserAccountId(userAccountId);
setPassword(password);
setPasswordExpires(passwordExpires);
setPasswordUpdated(passwordUpdated);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,207 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountAdditionInfo;
import java.sql.Date;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UserAccountAdditionInfoRecord extends UpdatableRecordImpl<UserAccountAdditionInfoRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for
* <code>security.user_account_addition_info.user_account_addition_info_id</code>.
*/
public void setUserAccountAdditionInfoId(Long value) {
set(0, value);
}
/**
* Getter for
* <code>security.user_account_addition_info.user_account_addition_info_id</code>.
*/
public Long getUserAccountAdditionInfoId() {
return (Long) get(0);
}
/**
* Setter for
* <code>security.user_account_addition_info.user_account_id</code>.
*/
public void setUserAccountId(String value) {
set(1, value);
}
/**
* Getter for
* <code>security.user_account_addition_info.user_account_id</code>.
*/
public String getUserAccountId() {
return (String) get(1);
}
/**
* Setter for <code>security.user_account_addition_info.ip_address</code>.
*/
public void setIpAddress(String value) {
set(2, value);
}
/**
* Getter for <code>security.user_account_addition_info.ip_address</code>.
*/
public String getIpAddress() {
return (String) get(2);
}
/**
* Setter for
* <code>security.user_account_addition_info.job_position_id</code>.
*/
public void setJobPositionId(Long value) {
set(3, value);
}
/**
* Getter for
* <code>security.user_account_addition_info.job_position_id</code>.
*/
public Long getJobPositionId() {
return (Long) get(3);
}
/**
* Setter for <code>security.user_account_addition_info.comment</code>.
*/
public void setComment(String value) {
set(4, value);
}
/**
* Getter for <code>security.user_account_addition_info.comment</code>.
*/
public String getComment() {
return (String) get(4);
}
/**
* Setter for <code>security.user_account_addition_info.user_loaded</code>.
*/
public void setUserLoaded(Boolean value) {
set(5, value);
}
/**
* Getter for <code>security.user_account_addition_info.user_loaded</code>.
*/
public Boolean getUserLoaded() {
return (Boolean) get(5);
}
/**
* Setter for <code>security.user_account_addition_info.password</code>.
*/
public void setPassword(String value) {
set(6, value);
}
/**
* Getter for <code>security.user_account_addition_info.password</code>.
*/
public String getPassword() {
return (String) get(6);
}
/**
* Setter for <code>security.user_account_addition_info.sex</code>.
*/
public void setSex(String value) {
set(7, value);
}
/**
* Getter for <code>security.user_account_addition_info.sex</code>.
*/
public String getSex() {
return (String) get(7);
}
/**
* Setter for <code>security.user_account_addition_info.birth_date</code>.
*/
public void setBirthDate(Date value) {
set(8, value);
}
/**
* Getter for <code>security.user_account_addition_info.birth_date</code>.
*/
public Date getBirthDate() {
return (Date) get(8);
}
/**
* Setter for <code>security.user_account_addition_info.snils</code>.
*/
public void setSnils(String value) {
set(9, value);
}
/**
* Getter for <code>security.user_account_addition_info.snils</code>.
*/
public String getSnils() {
return (String) get(9);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<Long> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached UserAccountAdditionInfoRecord
*/
public UserAccountAdditionInfoRecord() {
super(UserAccountAdditionInfo.USER_ACCOUNT_ADDITION_INFO);
}
/**
* Create a detached, initialised UserAccountAdditionInfoRecord
*/
public UserAccountAdditionInfoRecord(Long userAccountAdditionInfoId, String userAccountId, String ipAddress, Long jobPositionId, String comment, Boolean userLoaded, String password, String sex, Date birthDate, String snils) {
super(UserAccountAdditionInfo.USER_ACCOUNT_ADDITION_INFO);
setUserAccountAdditionInfoId(userAccountAdditionInfoId);
setUserAccountId(userAccountId);
setIpAddress(ipAddress);
setJobPositionId(jobPositionId);
setComment(comment);
setUserLoaded(userLoaded);
setPassword(password);
setSex(sex);
setBirthDate(birthDate);
setSnils(snils);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,261 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccount;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UserAccountRecord extends UpdatableRecordImpl<UserAccountRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>security.user_account.user_account_id</code>.
*/
public void setUserAccountId(String value) {
set(0, value);
}
/**
* Getter for <code>security.user_account.user_account_id</code>.
*/
public String getUserAccountId() {
return (String) get(0);
}
/**
* Setter for <code>security.user_account.email</code>.
*/
public void setEmail(String value) {
set(1, value);
}
/**
* Getter for <code>security.user_account.email</code>.
*/
public String getEmail() {
return (String) get(1);
}
/**
* Setter for <code>security.user_account.first_name</code>.
*/
public void setFirstName(String value) {
set(2, value);
}
/**
* Getter for <code>security.user_account.first_name</code>.
*/
public String getFirstName() {
return (String) get(2);
}
/**
* Setter for <code>security.user_account.last_name</code>.
*/
public void setLastName(String value) {
set(3, value);
}
/**
* Getter for <code>security.user_account.last_name</code>.
*/
public String getLastName() {
return (String) get(3);
}
/**
* Setter for <code>security.user_account.middle_name</code>.
*/
public void setMiddleName(String value) {
set(4, value);
}
/**
* Getter for <code>security.user_account.middle_name</code>.
*/
public String getMiddleName() {
return (String) get(4);
}
/**
* Setter for <code>security.user_account.created</code>.
*/
public void setCreated(Timestamp value) {
set(5, value);
}
/**
* Getter for <code>security.user_account.created</code>.
*/
public Timestamp getCreated() {
return (Timestamp) get(5);
}
/**
* Setter for <code>security.user_account.updated</code>.
*/
public void setUpdated(Timestamp value) {
set(6, value);
}
/**
* Getter for <code>security.user_account.updated</code>.
*/
public Timestamp getUpdated() {
return (Timestamp) get(6);
}
/**
* Setter for <code>security.user_account.locked</code>.
*/
public void setLocked(Boolean value) {
set(7, value);
}
/**
* Getter for <code>security.user_account.locked</code>.
*/
public Boolean getLocked() {
return (Boolean) get(7);
}
/**
* Setter for <code>security.user_account.org_unit_id</code>.
*/
public void setOrgUnitId(String value) {
set(8, value);
}
/**
* Getter for <code>security.user_account.org_unit_id</code>.
*/
public String getOrgUnitId() {
return (String) get(8);
}
/**
* Setter for <code>security.user_account.username</code>.
*/
public void setUsername(String value) {
set(9, value);
}
/**
* Getter for <code>security.user_account.username</code>.
*/
public String getUsername() {
return (String) get(9);
}
/**
* Setter for <code>security.user_account.phone</code>.
*/
public void setPhone(String value) {
set(10, value);
}
/**
* Getter for <code>security.user_account.phone</code>.
*/
public String getPhone() {
return (String) get(10);
}
/**
* Setter for <code>security.user_account.email_confirmed</code>.
*/
public void setEmailConfirmed(Boolean value) {
set(11, value);
}
/**
* Getter for <code>security.user_account.email_confirmed</code>.
*/
public Boolean getEmailConfirmed() {
return (Boolean) get(11);
}
/**
* Setter for <code>security.user_account.user_source</code>.
*/
public void setUserSource(String value) {
set(12, value);
}
/**
* Getter for <code>security.user_account.user_source</code>.
*/
public String getUserSource() {
return (String) get(12);
}
/**
* Setter for <code>security.user_account.source_name</code>.
*/
public void setSourceName(String value) {
set(13, value);
}
/**
* Getter for <code>security.user_account.source_name</code>.
*/
public String getSourceName() {
return (String) get(13);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached UserAccountRecord
*/
public UserAccountRecord() {
super(UserAccount.USER_ACCOUNT);
}
/**
* Create a detached, initialised UserAccountRecord
*/
public UserAccountRecord(String userAccountId, String email, String firstName, String lastName, String middleName, Timestamp created, Timestamp updated, Boolean locked, String orgUnitId, String username, String phone, Boolean emailConfirmed, String userSource, String sourceName) {
super(UserAccount.USER_ACCOUNT);
setUserAccountId(userAccountId);
setEmail(email);
setFirstName(firstName);
setLastName(lastName);
setMiddleName(middleName);
setCreated(created);
setUpdated(updated);
setLocked(locked);
setOrgUnitId(orgUnitId);
setUsername(username);
setPhone(phone);
setEmailConfirmed(emailConfirmed);
setUserSource(userSource);
setSourceName(sourceName);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,134 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountRefreshToken;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UserAccountRefreshTokenRecord extends UpdatableRecordImpl<UserAccountRefreshTokenRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for
* <code>security.user_account_refresh_token.user_account_refresh_token_id</code>.
*/
public void setUserAccountRefreshTokenId(String value) {
set(0, value);
}
/**
* Getter for
* <code>security.user_account_refresh_token.user_account_refresh_token_id</code>.
*/
public String getUserAccountRefreshTokenId() {
return (String) get(0);
}
/**
* Setter for
* <code>security.user_account_refresh_token.user_account_id</code>.
*/
public void setUserAccountId(String value) {
set(1, value);
}
/**
* Getter for
* <code>security.user_account_refresh_token.user_account_id</code>.
*/
public String getUserAccountId() {
return (String) get(1);
}
/**
* Setter for
* <code>security.user_account_refresh_token.refresh_token</code>.
*/
public void setRefreshToken(String value) {
set(2, value);
}
/**
* Getter for
* <code>security.user_account_refresh_token.refresh_token</code>.
*/
public String getRefreshToken() {
return (String) get(2);
}
/**
* Setter for <code>security.user_account_refresh_token.access_token</code>.
*/
public void setAccessToken(String value) {
set(3, value);
}
/**
* Getter for <code>security.user_account_refresh_token.access_token</code>.
*/
public String getAccessToken() {
return (String) get(3);
}
/**
* Setter for
* <code>security.user_account_refresh_token.expiration_time</code>.
*/
public void setExpirationTime(Timestamp value) {
set(4, value);
}
/**
* Getter for
* <code>security.user_account_refresh_token.expiration_time</code>.
*/
public Timestamp getExpirationTime() {
return (Timestamp) get(4);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached UserAccountRefreshTokenRecord
*/
public UserAccountRefreshTokenRecord() {
super(UserAccountRefreshToken.USER_ACCOUNT_REFRESH_TOKEN);
}
/**
* Create a detached, initialised UserAccountRefreshTokenRecord
*/
public UserAccountRefreshTokenRecord(String userAccountRefreshTokenId, String userAccountId, String refreshToken, String accessToken, Timestamp expirationTime) {
super(UserAccountRefreshToken.USER_ACCOUNT_REFRESH_TOKEN);
setUserAccountRefreshTokenId(userAccountRefreshTokenId);
setUserAccountId(userAccountId);
setRefreshToken(refreshToken);
setAccessToken(accessToken);
setExpirationTime(expirationTime);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,98 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserAccountVerification;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UserAccountVerificationRecord extends UpdatableRecordImpl<UserAccountVerificationRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for
* <code>security.user_account_verification.user_account_id</code>.
*/
public void setUserAccountId(String value) {
set(0, value);
}
/**
* Getter for
* <code>security.user_account_verification.user_account_id</code>.
*/
public String getUserAccountId() {
return (String) get(0);
}
/**
* Setter for <code>security.user_account_verification.token</code>.
*/
public void setToken(String value) {
set(1, value);
}
/**
* Getter for <code>security.user_account_verification.token</code>.
*/
public String getToken() {
return (String) get(1);
}
/**
* Setter for <code>security.user_account_verification.created</code>.
*/
public void setCreated(Timestamp value) {
set(2, value);
}
/**
* Getter for <code>security.user_account_verification.created</code>.
*/
public Timestamp getCreated() {
return (Timestamp) get(2);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached UserAccountVerificationRecord
*/
public UserAccountVerificationRecord() {
super(UserAccountVerification.USER_ACCOUNT_VERIFICATION);
}
/**
* Create a detached, initialised UserAccountVerificationRecord
*/
public UserAccountVerificationRecord(String userAccountId, String token, Timestamp created) {
super(UserAccountVerification.USER_ACCOUNT_VERIFICATION);
setUserAccountId(userAccountId);
setToken(token);
setCreated(created);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,126 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserGroup;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UserGroupRecord extends UpdatableRecordImpl<UserGroupRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>security.user_group.user_group_id</code>.
*/
public void setUserGroupId(String value) {
set(0, value);
}
/**
* Getter for <code>security.user_group.user_group_id</code>.
*/
public String getUserGroupId() {
return (String) get(0);
}
/**
* Setter for <code>security.user_group.name</code>.
*/
public void setName(String value) {
set(1, value);
}
/**
* Getter for <code>security.user_group.name</code>.
*/
public String getName() {
return (String) get(1);
}
/**
* Setter for <code>security.user_group.created</code>.
*/
public void setCreated(Timestamp value) {
set(2, value);
}
/**
* Getter for <code>security.user_group.created</code>.
*/
public Timestamp getCreated() {
return (Timestamp) get(2);
}
/**
* Setter for <code>security.user_group.updated</code>.
*/
public void setUpdated(Timestamp value) {
set(3, value);
}
/**
* Getter for <code>security.user_group.updated</code>.
*/
public Timestamp getUpdated() {
return (Timestamp) get(3);
}
/**
* Setter for <code>security.user_group.access_level_id</code>.
*/
public void setAccessLevelId(String value) {
set(4, value);
}
/**
* Getter for <code>security.user_group.access_level_id</code>.
*/
public String getAccessLevelId() {
return (String) get(4);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached UserGroupRecord
*/
public UserGroupRecord() {
super(UserGroup.USER_GROUP);
}
/**
* Create a detached, initialised UserGroupRecord
*/
public UserGroupRecord(String userGroupId, String name, Timestamp created, Timestamp updated, String accessLevelId) {
super(UserGroup.USER_GROUP);
setUserGroupId(userGroupId);
setName(name);
setCreated(created);
setUpdated(updated);
setAccessLevelId(accessLevelId);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,111 @@
/*
* This file is generated by jOOQ.
*/
package ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.records;
import ervu_usr_autority.ervu_usr_autority.db_beans.security.tables.UserRole;
import java.sql.Timestamp;
import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class UserRoleRecord extends UpdatableRecordImpl<UserRoleRecord> {
private static final long serialVersionUID = 1L;
/**
* Setter for <code>security.user_role.user_role_id</code>.
*/
public void setUserRoleId(String value) {
set(0, value);
}
/**
* Getter for <code>security.user_role.user_role_id</code>.
*/
public String getUserRoleId() {
return (String) get(0);
}
/**
* Setter for <code>security.user_role.name</code>.
*/
public void setName(String value) {
set(1, value);
}
/**
* Getter for <code>security.user_role.name</code>.
*/
public String getName() {
return (String) get(1);
}
/**
* Setter for <code>security.user_role.created</code>.
*/
public void setCreated(Timestamp value) {
set(2, value);
}
/**
* Getter for <code>security.user_role.created</code>.
*/
public Timestamp getCreated() {
return (Timestamp) get(2);
}
/**
* Setter for <code>security.user_role.updated</code>.
*/
public void setUpdated(Timestamp value) {
set(3, value);
}
/**
* Getter for <code>security.user_role.updated</code>.
*/
public Timestamp getUpdated() {
return (Timestamp) get(3);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
@Override
public Record1<String> key() {
return (Record1) super.key();
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached UserRoleRecord
*/
public UserRoleRecord() {
super(UserRole.USER_ROLE);
}
/**
* Create a detached, initialised UserRoleRecord
*/
public UserRoleRecord(String userRoleId, String name, Timestamp created, Timestamp updated) {
super(UserRole.USER_ROLE);
setUserRoleId(userRoleId);
setName(name);
setCreated(created);
setUpdated(updated);
resetChangedOnNotNull();
}
}

View file

@ -0,0 +1,16 @@
package ru.micord.ervu.user_authority;
import component.field.persist.TextField;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
public class PasswordField extends TextField {
@Autowired
private PasswordEncoder passwordEncoder;
@Override
public String convertValueForSave(String value) {
return super.convertValueForSave(passwordEncoder.encode(value));
}
}

View file

@ -0,0 +1,39 @@
package ru.micord.ervu.user_authority.service;
import model.BpmnVariableForSave;
import model.FieldData;
import ru.cg.webbpm.modules.webkit.annotations.RpcSharedProperty;
import service.container.AbstractGraphFormService;
import service.container.FormMode;
import service.container.FormService;
import java.util.List;
/**
* Обрезанный FormServiceImpl из платформы, отвязанный от BPMN зависимостей
* Поддержку BMPN решели из этого проекта убрать
* @author Denis Ivanov
*/
public class UserAuthorityFormService extends AbstractGraphFormService implements FormService {
@RpcSharedProperty
public FormMode mode = FormMode.SIMPLE; // this is to share property with the default Form.ts
@Override
public Object saveData(String s, List<FieldData> list, Boolean aBoolean,
List<BpmnVariableForSave> list1) throws Exception {
throw new UnsupportedOperationException("BPMN operations are unsupported");
}
@Override
public List<FieldData> loadData() {
throw new UnsupportedOperationException("Loading with no id is unsupported");
}
@Override
public Object deleteData(String s, List<BpmnVariableForSave> list) {
throw new UnsupportedOperationException("BPMN operations are unsupported");
}
}

View file

769
config.md Normal file
View file

@ -0,0 +1,769 @@
# Описание параметров конфигурации сервера приложений
Файл /standalone/configuration/standalone.xml
## Общие
- `webbpm.security.login.case_sensitive`. Default value = true. Параметр отвечающий за чувствительность к регистру при обработке логина пользователя.
- true - Login и login, обрабатываются как разные логины.
- false - Login и login, обрабатывается как один и тот же логин.
- `webbpm.db.pool_size`. Нужен только для `webbpm.mode` = development.
- `webbpm.mode`. Режим работы приложения. Значения - development, production.
- development - в этом режиме используется соединение к БД проекта, заданное в Studio.
- production - в этом режиме используется соединение к БД проекта, заданное с помощью jndi имени.
## Модуль BPMN
```bpmn.enable``` - по умолчанию true, отвечает за создание бинов использующих модуль bpmn (при флаге false можно убрать зависимости модуля, смотри **docs/ru/developer-guide/Отключение_bpmn_модуля.md**)
Пример:
```xml
<property name="bpmn.enable" value="false"/>
```
## jBPM
- `com.arjuna.ats.arjuna.allowMultipleLastResources`
- `webbpm.jbpm.audit-log.disabled` - флаг, отвечающий за включение/отключение аудита jBPM
- `webbpm.jbpm.cleaner_cron` - cron расписание автоматической очистки БД JBPM, по умолчанию "-" т.е. выключен. Очищаются незавершенные процессы.
- `webbpm.jbpm.cleaner_timeout` - время, спустя которое процесс считается устаревшим. По умолчанию - 10 часов.
- `webbpm.jbpm.finished_process_cleaner_cron` - cron расписание автоматической очистки аудита процессов в БД JBPM, по умолчанию "-"
т.е. выключен
- `webbpm.jbpm.finished_process_cleaner_timeout` - время, спустя которое процесс считается устаревшим. По умолчанию - 10 часов.
Пример:
```xml
<property name="com.arjuna.ats.arjuna.allowMultipleLastResources" value="true"/>
<property name="webbpm.db.pool_size" value="5"/>
<property name="webbpm.mode" value="development"/>
```
### jBPM Runtime Strategy
Возможные варианты runtime strategy:
- SINGLETON
- PER_REQUEST (значение по умолчанию)
- PER_PROCESS_INSTANCE
- PER_CASE
Пример:
```xml
<property name="webbpm.jbpm.runtime_strategy" value="PER_PROCESS_INSTANCE"/>
```
## Способ аутентификации
- authentication.method - способ аутентификации. Поддерживаемые способы аутентификации: form, kerberos, cert_over_db, cert_over_ldap
### По логину и паролю
Пример конфигурации:
```xml
<property name="authentication.method" value="form"/>
```
### По сертификату
- cert_over_db - проверка наличия пользователя в базе данных безопасности
- cert_over_ldap - проверка наличия пользователя в базе данных безопасности и в LDAP
Примеры:
```xml
<property name="authentication.method" value="cert_over_db"/>
<property name="authentication.method" value="cert_over_ldap"/>
```
Параметр способа аутентификации authentication.method должен быть также установлен на клиентской части приложения в app-config.json
Также для аутентификации по сертификату нужны свойства для хранилища сертификатов:
- certificate.keystore.location - путь до java key store. Key store - это хранилище доверенных сертификатов, с помощью которых можно проверить корневой сертификат. Сертификат устанавливается с помощью команды:
```text
keytool -importcert -alias myAlias -file Example.cer -keystore exampleKeyStore
```
- certificate.keystore.password - пароль для keystore, установленный при импорте сертификата
Примеры:
```xml
<property name="certificate.keystore.location" value="${jboss.home.dir}/mfc"/>
<property name="certificate.keystore.password" value="mfc_auth"/>
```
### Kerberos
Получите от администратора Kerberos .keytab файл, из которого командой `klist -k http.keytab` можно получить список principal-ов
Проверить успешность авторизации principal-а можно командой `kinit -t -i http.keytab %principal%`.
В
случае успешной авторизации команда `klist` в качестве default principal которым проводилась авторизация.
После этого в standalone.xml поправить параметр `app.service-principal` на principal, которым успешно авторизовались. principal имеет формат: `HTTP/%hostname%@%REALM%`
Пример конфигурации:
```xml
<property name="app.service-principal" value="HTTP/oleg-rxserver.alt.dom@ALT.DOM"/>
<property name="app.keytab-location" value="${jboss.home.dir}/http.keytab"/>
<property name="authentication.method" value="kerberos"/>
```
- app.service-principal. Пример - HTTP/oleg-rxserver.alt.dom@ALT.DOM
- app.keytab-location - расположение keytab файла. Пример - ${jboss.home.dir}/
- http.keytab.
Также необходимо в настройках браузера на клиенте задать параметр `network.negotiate-auth.trusted-uris` задать значение `.%domain%`.
Пример:
```xml
.ALT.DOM
```
### Ldap
Аутентификация происходит посредством логина и пароля синхронизированного пользователя Ldap.
Логин и пароль введенные в форму входа, будут проверены сервисом Ldap.
Пример конфигурации:
```xml
<property name="ldap.url" value="ldap://localhost:389"/>
<property name="ldap.base" value="dc=example,dc=org"/>
<property name="ldap.username" value="cn=admin,dc=example,dc=org"/>
<property name="ldap.password" value="admin"/>
<property name="authentication.method" value="form"/>
```
#### Настройка сервера приложений для работы с Kerberos
1. создать учетные записи в домене:
- тестовые для проверки работоспособности функционала (пользователи домена, почтовые ящики):
`User1 pass1 user1@example.com`
`User2 pass2 user2@example.com`
- сервисную для доступа сервиса(приложения) к MS AD - (пользователь домена - снять устаревание пароля, ограничение по времени действия, почтовый ящик):
`serviceUser servicePass serviceuser@example.com`
---
2. завести учетную запись машины `appserver.machine.name` (fqdn-имя сервиса) в AD (вручную, как запись в computer) и в DNS (A-запись)
`appserver.machine.name 10.250.216.91`
3. сгенерировать keytab (утилита ktpass) для аутентификации сервисов(приложения) для единой точки входа - `serviceUser` - с именем test.file.name.keytab - привязав к ней пользователя serviceUser
например, так:
```
ktpass -princ http/appserverMachineName.example.com@example.com -mapuser example.com\serviceUser -pass "пароль_уз_serviceUser" -crypto All -ptype KRB5_NT_PRINCIPAL -out "путь_к_директории_выгрузки_файла\test.file.name.keytab"
```
##### Kerberos FAQ
- В случае, если авторизация не проходит и в логах сервера приложений присутствует следующий вывод:
```
2019-05-14 05:33:36,588 INFO [security.controller.KerberosAuthenticationController] (default task-3) Authentication request header Authorization not exists
2019-05-14 05:33:36,588 INFO [security.controller.KerberosAuthenticationController] (default task-3) Authentication object is not presented
```
необходимо проверить настройку браузера firefox `network.negotiate-auth.trusted-uris`, она должна соответствовать домену из principal-а.
Для этого в поисковую строку браузера вводим "about:config", в открывшемся окне нажимаем "accept with risk and continue", в поисковой строке открывшейся страницы ввести `network.negotiate-auth.trusted-uris`.
Пример: для principal-а `HTTP/oleg-rxserver.alt.dom@ALT.DOM` настройка в браузере должна быть `.alt.dom`, приложение в браузере должно открываться по `http:\\oleg-rxserver.alt.dom:8080\...`
- если в логах сервера приложений есть ошибка:
```xml
2019-05-13 14:13:07,095 WARN [org.springframework.security.kerberos.web.authentication.SpnegoAuthenticationProcessingFilter] (default task-1) Negotiate Header was invalid: Negotiate TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAKAGNFAAAADw==: org.springframework.security.authentication.BadCredentialsException: Kerberos validation not successful
...
Caused by: java.security.PrivilegedActionException: GSSException: Defective token detected (Mechanism level: GSSHeader did not find the right tag)
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_211]
at javax.security.auth.Subject.doAs(Subject.java:422) [rt.jar:1.8.0_211]
at org.springframework.security.kerberos.authentication.sun.SunJaasKerberosTicketValidator.validateTicket(SunJaasKerberosTicketValidator.java:68) [spring-security-kerberos-core-1.0.1.RELEASE.jar:1.0.1.RELEASE]
... 66 more
Caused by: GSSException: Defective token detected (Mechanism level: GSSHeader did not find the right tag)
at sun.security.jgss.GSSHeader.(GSSHeader.java:97) [rt.jar:1.8.0_211]
at sun.security.jgss.GSSContextImpl.acceptSecContext(GSSContextImpl.java:306) [rt.jar:1.8.0_211]
at sun.security.jgss.GSSContextImpl.acceptSecContext(GSSContextImpl.java:285) [rt.jar:1.8.0_211]
at org.springframework.security.kerberos.authentication.sun.SunJaasKerberosTicketValidatorKerberosValidateAction.run(SunJaasKerberosTicketValidator.java:170) [spring-security-kerberos-core-1.0.1.RELEASE.jar:1.0.1.RELEASE]
at org.springframework.security.kerberos.authentication.sun.SunJaasKerberosTicketValidatorKerberosValidateAction.run(SunJaasKerberosTicketValidator.java:153) [spring-security-kerberos-core-1.0.1.RELEASE.jar:1.0.1.RELEASE]
... 69 more
```
необходимо проверить правильность указанного в standalone.xml principal-а.
### Комбинации нескольких способов аутентификации
Приложение может обрабатывать запросы на несколько способов аутентификации. Для этого необходимо переичислить нужные профили через запятую.
Примеры:
```xml
<property name="authentication.method" value="form,cert_over_db"/>
<property name="authentication.method" value="form,cert_over_ldap"/>
<property name="authentication.method" value="kerberos,cert_over_db"/>
<property name="authentication.method" value="kerberos,cert_over_ldap"/>
```
### Время жизни токенов аутентификации
```xml
<property name="webbpm.security.access_token.duration.minutes" value="60"/>
<property name="webbpm.security.refresh_token.duration.days" value="30"/>
<property name="webbpm.security.session.active.count" value="2"/>
```
`webbpm.security.access_token.duration.minutes` - опциональный параметр (значение по умолчанию 60), время жизни в минутах, сколько будет действителен токен, после истечения этого времени токен будет обновлён `webbpm.security.refresh_token.duration.days` - опциональный параметр (значение по умолчанию 30), время жизни в днях, после истечения этого времени с последнего обновления, пользователю будет необходимо повторно войти `webbpm.security.session.active.count` - опциональный параметр (значение по умолчанию 1), количество сохраняемых в базу токенов обновления (количество активных сессий)
Примечания.
- Нельзя использовать одновременно профили cert_over_db c cert_over_ldap и kerberos с form.
## Синхронизация пользователей с LDAP
```xml
<property name="ldap.auto.sync.enabled" value="true"/>
<property name="ldap.synchronizer.cron" value="0 0 * * * *"/>
<property name="ldap.url" value="ldap://localhost:389"/>
<property name="ldap.base" value="dc=alt,dc=dom"/>
<property name="ldap.username" value="uid=test,ou=People,dc=alt,dc=dom"/>
<property name="ldap.password" value="password"/>
<property name="webbpm.ldap.implementation" value="open-ldap"/>
```
Настройки подключения к LDAP:
- `ldap.auto.sync.enabled` - включает/отключает автоматическую синхронизацию с LDAP
- `ldap.synchronizer.cron` - cron расписание автоматической синхронизации с LDAP
- `ldap.url`. Пример - ldap://localhost:389
- `ldap.base`. Пример - dc=alt,dc=dom
- `ldap.username`. Пример - uid=test,ou=People,dc=alt,dc=dom
- `ldap.password`
- `webbpm.ldap.implementation`. Допускается два значения: open-ldap и active-directory.
## WEBGUARD
Для синхронизации пользователей в WEBGUARD и для корректной работы админки необходимо указать настройки соединения к REST API WEBGUARD
```xml
<property name="webguard.url" value="http://wg-host:8081/security-manager"/>
<property name="webguard.user.login" value="wg-user"/>
<property name="webguard.user.password" value="wg-password"/>
```
## Статистика
### jbpm hibernate statistics
Статистика hibernate jbpm доступна по jmx по пути `org.hibernate:type=Stats,name=jbpm`.
Полный список параметров можно посмотреть через jconsole.
По умолчанию включена, отключить можно настройкой `webbpm.jbpm.hibernate_statistics.enabled`:
```xml
<property name="webbpm.jbpm.hibernate_statistics.enabled" value="false"/>
```
## Schedulers по очистке базы *jbpm*.
- Очистка таблиц аудита от завершенных процессов по истечении таймаута
- `webbpm.jbpm.finished_process_cleaner_cron` - задает расписание (*spring cron*), если настройка не задана - джоб не запускается
- `webbpm.jbpm.finished_process_cleaner_timeout` - таймаут в часах (*целое числовое значение*)
Пример:
```xml
<property name="webbpm.jbpm.finished_process_cleaner_cron" value="0 * * * * *"/>
<property name="webbpm.jbpm.finished_process_cleaner_timeout" value="2"/>
```
## Ограничения для запросов БД.
- `webbpm.db.query_limit_enabled` - флаг, отвечающий за вывод сообщений о превышении лимитов на количество возвращаемых записей. По умолчанию - false.
- `webbpm.db.select_records_max_limit` - максимальный лимит возвращаемых строк для запросов в БД, при превышении/равенстве данного лимита будет выброшена ошибка (*целое числовое значение*). По умолчанию - 100000
- `webbpm.db.select_records_min_limit` - минимальный лимит возвращаемых строк для запросов в БД, при превышении/равенстве данного лимита в логи будет выведен warning (*целое числовое значение*). По умолчанию - 1000
- `webbpm.db.execution_time_threshold`. The threshold for time of executing a statement. Система выводит сообщение в логи при превышении. Действует для запросов, созданных в jOOQ. По умолчанию - 1000 миллисекунд
- `webbpm.db.result_read_time_threshold`. The threshold for time of fetching a set of records from a ResultSet.
. Система выводит сообщение в логи при превышении. Действует для запросов, созданных в jOOQ. По умолчанию - 50 миллисекунд
- `webbpm.db.results_count_threshold`. Система выводит сообщение в логи при превышении. Действует для запросов, созданных в jOOQ. По умолчанию - 1000 записей
- `webbpm.db.full_time_threshold`. Ограничение на полное время выполнения запроса. Система выводит сообщение в логи при превышении. Действует для запросов, созданных в jOOQ. По умолчанию sum(webbpm.db.result_read_time_threshold, webbpm.db.execution_time_threshold) миллисекунд
- `webbpm.db.query_timeout`. Ограничение на время выполнения запроса. При превышении запрос будет отклонен. Действует для запросов, созданных в jOOQ в dev режиме. По умолчанию 120 секунд.
Пример:
```xml
<property name="webbpm.db.query_limit_enabled" value="false"/>
<property name="webbpm.db.select_records_max_limit" value="100000"/>
<property name="webbpm.db.select_records_min_limit" value="1000"/>
<property name="webbpm.db.execution_time_threshold" value="1000"/>
<property name="webbpm.db.results_count_threhold" value="50"/>
<property name="webbpm.db.result_read_time_threshold" value="50"/>
<property name="webbpm.db.full_time_threshold" value="300"/>
<property name="webbpm.db.query_timeout" value="120"/>
```
## Добавление версии приложения в URL при запросах к backend-у
При сборке приложения с профилем enable-version-in-url в URL будет добавляться версия приложения, указанная в pom.xml.
Шаблон URL:
```
<protocol>//<hostname>:<port>/backend<app-version>/<some-controller>
```
## Включение регистрации пользователя
1. Укажите конфигурацию почтового сервера для отправки писем с подтверждением регистрации.
Для этого в файле проекта *jndi-resources.xml* добавьте ресурс SmtpConfiguration.
Шаблон:
```
<jndi-resource name="java:comp/env/webbpm/testResource" type="bpmn.handler.common.SmtpConfiguration">{"host":"host","port":1234,"login":"user","password":"password","from":"email_from","senderName":"sender_name","isSecured":true}</jndi-resource>
```
Почтовый сервер - зарегистрированный актуальный почтовый адрес. В поле password нужно указывать не пароль для входа в почту, а создать пароль для приложений в учетке почты и указать его.
2. Для включения регистрации добавьте в *standalone.xml* свойство
```
<property name="registration.enabled" value="true"/>
```
3. Также в *standalone.xml* укажите ресурс для отправки писем для подтверждения регистрации (из п.1)
```
<property name="mail.jndi.resource.name" value="java:comp/env/webbpm/testResource"/>
```
4. При необходимости, отредактируйте шаблон письма для подтверждения регистрации
(resources/src/main/resources/mail/confirmation.html)
5. При необходимости, отредактируйте шаблон письма для восстановления пароля
(resources/src/main/resources/mail/reset_password.html)
#### Настройка браузера для входа в систему с помощью Kerberos
1. Запустите браузер firefox.
2. В адресной строке введите about:config, нажать кнопку "я принимаю на себя риск"
3. С помощью поиска найдите параметр network.negotiate-auth.trusted-uris и в качестве значения ввести домен(например для домена example.com надо ввести .example.com)
4. Откройте в браузере приложение. Пример [http://app.example.com/](http://app.example.com/) . Приложение должно открыться без запроса логина/пароля
## Восстановление структуры БД
На основе БД проекта с помощью jOOQ генерируются Java классы для каждого объекта БД. Это происходит по нажатию кнопки Обновить на панели БД в студии. При необходимости можно сформировать DDL на основе данных классов. Пример класса для генерации DDL
```
package ru.cg.webbpm.test_project.db_beans;
import org.jooq.*;
import org.jooq.impl.*;
public class Main {
public static void main (String args []) {
DefaultConfiguration defaultConfiguration = new DefaultConfiguration();
defaultConfiguration.setSQLDialect(SQLDialect.POSTGRES);
Queries ddl = DSL.using(defaultConfiguration).ddl(DefaultCatalog.DEFAULT_CATALOG);
for (Query query : ddl.queries()) {
System.out.println(query);
}
}
}
```
** ВНИМАНИЕ: **
- этим способом нельзя восстановить функции/процедуры БД
см. также [Generating DDL from objects](https://www.jooq.org/doc/latest/manual/sql-building/ddl-statements/generating-ddl/)
## Распределенный кэш (Hazelcast)
В платформе подключен кэш. Он используется для подсчёта количества пользователей и кэширования подсистемы безопасности
- `webbpm.cache.hazelcast.port` - входящий порт hazelcast. по дефолту 5701.
- Обязательное задать одно из двух следующих параметров
- `webbpm.cache.hazelcast.hosts` - список хостов серверов приложений.
webbpm.cache.hazelcast.hosts = hostname1,hostname2,hostname3
- `webbpm.cache.hazelcast.kubernetes.service_name` - имя сервиса в среде kubernetes,
используемый для обнаружения других подов. Подходит как стратегия обнаружения, если используется
kubernetes
- `webbpm.cache.hazelcast.outbound_port_definitions` - исходящие порты hazelcast. по дефолту не задано, система сама выбирает свободные порты. Задать диапазон 5801 - 5820
- `webbpm.cache.hazelcast.backup_count`. Нужны чтобы когда сервер выключается был доступен бекап. Если предполагается выключать несколько серверов за раз, то нужно увеличить.
Данный бекап делает копии синхронно с основной записью и операция записи ждет пока будет записана везде. Можно делать бекап асинхронно, настраивается через async_backup_count
подробнее про бекапы [Hazelcast IMDG Reference Manual](https://docs.hazelcast.org/docs/3.11/manual/html-single/index.html#backing-up-maps) . по дефолту 1
- `webbpm.cache.hazelcast.async_backup_count`
- `webbpm.cache.hazelcast.public_address`
- `webbpm.cache.hazelcast.interfaces`
Пример конфигурации:
```xml
<property name="webbpm.cache.hazelcast.hosts" value="app1,app2"/>
<property name="webbpm.cache.hazelcast.outbound_port_definitions" value="5801-5820"/>`
```
## Подключение компоненты адреса в режиме ГАР (Государственный адресный реестр)
Необходимо задать параметры:
- `gar.enable` - флаг, который включает/отключает сервис для работы с ГАР. Должен быть задан для работы компоненты в режиме ГАР. По умолчанию true, для отключения задать false.
- `gar.elastic.url.host` - хост на котором развернут elasticsearch.
- `gar.elastic.password` - пароль для аутентификации elasticsearch.
Дополнительные параметры:
- `gar.elastic.url.port` - порт на котором развернут elasticsearch.
- `gar.elastic.username` - логин для аутентификации elasticsearch.
Пример конфигурации:
```xml
<property name="gar.enable" value="true"/>
<property name="gar.elastic.url.host" value="localhost"/>
<property name="gar.elastic.password" value="password"/>
```
## Метрики
Отчет
Отчет собирается раз в 30 секунд по дефолту, меняется параметром `webbpm.metrics.report_period_ms`.
Все метрики идут за отчетный период, после сбора отчета они сбрасываются.
Получить json со всеми метриками можно по урлу `backend/metrics/v1/all` - метрики будут с последнего собранного отчета, запрос не триггерит сбор отчета - это независимые операции. Отчет содержит только метрики по которым был совершен хотя бы один вызов в отчетный период. То есть, если какая-то операция не была совершена в отчетный период, то соответствующая ей метрика не попадет в отчет - ее не будет в json.
### Значения метрик
Все метрики идут за отчетный период, после сбора отчета они сбрасываются.
Нас в основном интересуют `callsCountSum`, `latencyMin`, `latencyAvg`, `latencyMax`
- `callsCountSum` - количество завершенных вызовов
- `latencyMin` - минимальное время выполнения
- `latencyAvg` - среднее время выполнения
- `latencyMax` - максимальное время выполнения
- `activeCallsCountMax` - количество начатых, но еще не завершенных вызовов.
- `activeCallsLatencyMax` - длительность самого долгого еще не завершенного вызова
### Текущие метрики приложения
- Получение коннекта из пула
- `webbpm.jbpm.db.connection.acquire`
- `webbpm.security.db.connection.acquire`
- `webbpm.db.connection.acquire`
- Время с момента получения коннекта до возврата его в пул
- `webbpm.jbpm.db.connection.in_use`
- `webbpm.security.db.connection.in_use`
- `webbpm.db.connection.in_use`
- Время выполнения запроса на бд проекта
- `webbpm.db.query.success.execution_time`
- Время выполнения запроса на бд проекта + время получения коннекта из пула
- `webbpm.db.query.success.full_time`
- active-users-count.indicatorMax
- active-users-count-ttl.indicatorMax
# Количество пользователей
- `webbpm.active_users_counter.enabled` - включает подсчет пользователей, нужно чтобы не запускать hazelcast на дев машинах. по дефолту false. На боевых серверах необходимо установить в true.
- `webbpm.active_users_counter.max_time_between_operations_in_seconds` - время, которое пользователь считается активным после действия. по дефолту 15 минут.
- `webbpm.active_users_counter.hazelcast.app_pool_size`. Запись в hazelcast производится асинхронно в отдельном пуле, не блокируя обработку http запроса. Это размер этого пула. по дефолту 4. Можно пока оставить 4 и последить за метриками pool.hazelcast-executor.queue.indicatorMax и pool.hazelcast-executor.activeThreads.indicatorMax. Если очередь будет сильно копиться, то увеличить.
## Настройка логов
Все настройки делаются в файле `standalone.xml`, если не указано иначе.
### Общие настройки
Платформа Web-bpm использует корневую категорию логирования `ru.cg.webbpm`, рекомендуется выставлять ее в уровень `info`. todo check prod config
```xml
<logger category="ru.cg.webbpm">
<level name="INFO"/>
</logger>
```
При этом компоненты используемые в проекте могут использовать другие категории.
### Параметры конфигурации
**Рекомендованное использование:** всегда в `info`.
Все параметры конфигурации загружаемые платформой web-bpm и пользовательским приложением через api webbpm логируются категорией `ru.cg.webbpm.modules.core.app_info.api.property.BaseProperty`. Она всегда должна быть выставлена в `info`.
Пример вывода:
```
2017-12-04 16:02:19,074 INFO [ru.cg.webbpm.modules.core.app_info.api.property.BaseProperty] (EclipseGeminiBlueprintExtenderThread-1) System property [webbpm.active_users_counter.enabled] not set. Using default value [false]
2017-12-04 16:02:19,074 INFO [ru.cg.webbpm.modules.core.app_info.api.property.BaseProperty] (EclipseGeminiBlueprintExtenderThread-1) System property [webbpm.active_users_counter.hazelcast.hosts] set to [127.0.0.1]
```
### БД проекта
#### Логирование запросов в бд security и бд проекта
**Рекомендованное использование:** только при разработке.
Использовать только при разработке. Категория `org.jooq.tools.LoggerListener` в `debug` уровень.
```xml
<logger category="org.jooq.tools.LoggerListener">
<level name="DEBUG"/>
</logger>
```
Пример вывода:
```
2017-12-04 18:21:10,391 DEBUG [org.jooq.tools.LoggerListener] (default task-19) Executing query : select "department"."department_name", "department"."department_id", "department"."parent_department_id", "department"."parent_department_id", "department"."department_id", (select (count(*) <> ?) from "public"."department" as "$$child" where "$$child"."parent_department_id" = "department"."department_id") as "$$hasChildren" from "public"."department" as "department" limit ?
2017-12-04 18:21:10,395 DEBUG [org.jooq.tools.LoggerListener] (default task-19) -> with bind values : select "department"."department_name", "department"."department_id", "department"."parent_department_id", "department"."parent_department_id", "department"."department_id", (select (count(*) <> 0) from "public"."department" as "$$child" where "$$child"."parent_department_id" = "department"."department_id") as "$$hasChildren" from "public"."department" as "department" limit 2147483647
2017-12-04 18:21:10,568 DEBUG [org.jooq.tools.LoggerListener] (default task-19) Fetched result : +-----------------+-------------+--------------------+--------------------+-------------+-------------+
2017-12-04 18:21:10,568 DEBUG [org.jooq.tools.LoggerListener] (default task-19) : |department_name |department_id|parent_department_id|parent_department_id|department_id|$$hasChildren|
2017-12-04 18:21:10,568 DEBUG [org.jooq.tools.LoggerListener] (default task-19) : +-----------------+-------------+--------------------+--------------------+-------------+-------------+
2017-12-04 18:21:10,568 DEBUG [org.jooq.tools.LoggerListener] (default task-19) : |Головной офис 1 | 8| {null}| {null}| 8|true |
2017-12-04 18:21:10,568 DEBUG [org.jooq.tools.LoggerListener] (default task-19) : |Головной офис 2 | 9| {null}| {null}| 9|true |
2017-12-04 18:21:10,568 DEBUG [org.jooq.tools.LoggerListener] (default task-19) : |Головной офис 3 | 10| {null}| {null}| 10|true |
2017-12-04 18:21:10,568 DEBUG [org.jooq.tools.LoggerListener] (default task-19) : |Подразделение 1.1| 11| 8| 8| 11|true |
2017-12-04 18:21:10,568 DEBUG [org.jooq.tools.LoggerListener] (default task-19) : |Подразделение 1.2| 12| 8| 8| 12|true |
2017-12-04 18:21:10,568 DEBUG [org.jooq.tools.LoggerListener] (default task-19) : +-----------------+-------------+--------------------+--------------------+-------------+-------------+
2017-12-04 18:21:10,568 DEBUG [org.jooq.tools.LoggerListener] (default task-19) : |...55 record(s) truncated...
```
#### Логирование больших запросов
**Рекомендованное использование:** всегда в `info`, с подобранными для проекта значениями. В проде значения должны быть проверены что они не вызывают излишнее логирование.
1. Для отслеживания больших запросов в пользовательскую базу нужно задать параметры что считать большими запросами, логироваться будут запросы больше заданных показателей.
Чтобы логировать все запросы можно задать значение `-1`. Добавляются как property в раздел `system-properties`:
```xml
<property name="webbpm.db.full_time_threshold" value="1050"/>
<property name="webbpm.db.results_count_threshold" value="1000"/>
```
В `info` режиме работают:
- `webbpm.db.full_time_threshold` - полное время выполнения запроса в миллисекундах. Включает построение запроса библиотекой, выполнение и загрузку результатов. Пример сообщения <br>`2023-01-11 13:09:38,361 WARN [ru.cg.webbpm.modules.database.impl.analytics.PerformanceListener] (default task-33) Query full time threshold exceeded. full_time=[6565ms] execution_time=[6565ms] read_time=[0ms] results_count=[4] query=[<your query>]`
- `webbpm.db.results_count_threshold` - количество записей, которое вернул запрос. Пример сообщения <br>`2023-01-11 13:10:34,088 WARN [ru.cg.webbpm.modules.database.impl.analytics.PerformanceListener] (default task-41) Query results count threshold exceeded. results_count=[11177] query=[<your query>]`
В `debug` режиме дополнительно к работающим в info:
- `webbpm.db.execution_time_threshold` - время выполнения запроса + построения запроса библиотекой.
- `webbpm.db.result_read_time_threshold` - время чтения результатов запроса
2. После задания настроек нужно настроить логирование - категория `ru.cg.webbpm.modules.database.impl.analytics.PerformanceListener`, уровень `info` или `debug`.
```xml
<logger category="ru.cg.webbpm.modules.database.impl.analytics.PerformanceListener">
<level name="INFO"/>
</logger>
```
### JBPM
#### Основные настройки
JBPM использует 3 корневых категории логирования `org.jbpm`, `org.drools`, `org.kie`. Все они должны быть выставлены в `warn`.
```xml
<logger category="org.jbpm">
<level name="WARN"/>
</logger>
<logger category="org.drools">
<level name="WARN"/>
</logger>
<logger category="org.kie">
<level name="WARN"/>
</logger>
```
#### Логирование запросов в БД
**Рекомендованное использование:** только при разработке.
Для логирования sql запросов нужно включить категорию `org.hibernate.SQL` в `debug`:
```xml
<logger category="org.hibernate.SQL">
<level name="DEBUG"/>
</logger>
```
Чтобы вывести параметры запросов и результат выполнения категорию `org.hibernate.type.descriptor.sql` в `trace`:
```xml
<logger category="org.hibernate.type.descriptor.sql">
<level name="TRACE"/>
</logger>
```
Пример вывода:
```
18:21:06,938 DEBUG [org.hibernate.SQL] (default task-47) select names0_.Task_Names_Id as Task_Nam7_16_0_, names0_.id as id1_16_0_, names0_.id as id1_16_1_, names0_.language as language2_16_1_, names0_.shortText as shortTex3_16_1_, names0_.text as text4_16_1_ from I18NText names0_ where names0_.Task_Names_Id=?
18:21:06,939 TRACE [org.hibernate.type.descriptor.sql.BasicBinder] (default task-47) binding parameter [1] as [BIGINT] - [180]
18:21:06,940 TRACE [org.hibernate.type.descriptor.sql.BasicExtractor] (default task-47) extracted value ([id1_16_1_] : [BIGINT]) - [539]
18:21:06,940 TRACE [org.hibernate.type.descriptor.sql.BasicExtractor] (default task-47) extracted value ([language2_16_1_] : [VARCHAR]) - [en-UK]
18:21:06,940 TRACE [org.hibernate.type.descriptor.sql.BasicExtractor] (default task-47) extracted value ([shortTex3_16_1_] : [VARCHAR]) - [Список записей]
18:21:06,941 TRACE [org.hibernate.type.descriptor.sql.BasicExtractor] (default task-47) extracted value ([text4_16_1_] : [CLOB]) - [Список записей]
18:21:06,941 TRACE [org.hibernate.type.descriptor.sql.BasicExtractor] (default task-47) extracted value ([Task_Nam7_16_0_] : [BIGINT]) - [180]
18:21:06,942 TRACE [org.hibernate.type.descriptor.sql.BasicExtractor] (default task-47) extracted value ([id1_16_0_] : [BIGINT]) - [539]
```
#### Дополнительные логи hibernate
**Рекомендованное использование:** только при разработке в случае необходимости.
1. Время выполнения запроса и количество результатов.
Включаются категорией `org.hibernate.stat` в `debug`. При этом в hibernate должен быть включен сбор статистики.
Похоже что логируется только hql select запросов.
```xml
<logger category="org.hibernate.stat">
<level name="DEBUG"/>
</logger>
```
Пример вывода:
```
18:21:06,858 DEBUG [org.hibernate.stat.internal.ConcurrentStatisticsImpl] (default task-41) HHH000117: HQL: select t from AuditTaskImpl t where t.taskId = :taskId, time: 6ms, rows: 1
```
2. Показатели hibernate сессий
Включаются категорией `org.hibernate.engine.internal.StatisticalLoggingSessionEventListener` в `info`.
При этом в hibernate должен быть включен сбор статистики. Тут может быть интересно количество запросов, флашей и общее время на все запросы сессией.
Пример вывода:
```
2017-12-04 17:25:58,493 INFO [org.hibernate.engine.internal.StatisticalLoggingSessionEventListener] (default task-21) Session Metrics {
63408365 nanoseconds spent acquiring 17 JDBC connections;
521509 nanoseconds spent releasing 17 JDBC connections;
65732621 nanoseconds spent preparing 17 JDBC statements;
31471897 nanoseconds spent executing 17 JDBC statements;
0 nanoseconds spent executing 0 JDBC batches;
0 nanoseconds spent performing 0 L2C puts;
0 nanoseconds spent performing 0 L2C hits;
0 nanoseconds spent performing 0 L2C misses;
297556 nanoseconds spent executing 1 flushes (flushing a total of 16 entities and 0 collections);
430168 nanoseconds spent executing 1 partial-flushes (flushing a total of 16 entities and 16 collections)
}
```
#### Логирование hbm2ddl
**Рекомендованное использование:** всегда в `trace`.
Должно быть включено всегда. Позволяет убедиться что hibernate не накатывал никакие миграции на базу. Этот функционал отключен у нас в коде.
```xml
<logger category="org.hibernate.tool.hbm2ddl">
<level name="TRACE"/>
</logger>
```
# Описание параметров конфигурации клиентской части
Свойства задаются в файле frontend/src/resources/app-config.json или frontend.war/src/resources/app-config.json
## Общие
- `dev_mode` - настройка задающая dev_mode для просмотра логов (true/false). При отсутствие оставляет значение при сборке
- `guard.confirm_exit` - выводить или нет диалог подтверждения, если обнаружены несохраненные данные в форме. Значение по умолчанию - false.
- `password.pattern` - Регулярное выражение для валидации пароля.
- `password_pattern_error` - Сообщение об ошибке валидации.
- `show.client.errors` - отвечает за отображение ошибок javascript-a пользователю (должна использоваться только в тестовых контурах) по умолчанию выключена
- 'available_task.single_fetch' - Отвечает за количество запросов available_task при завершении процесса. true - одиночный запрос, false/не указано - 10 запросов(старая реализация).
## Вывод сообщений
- `message_service_error_timeout` время в мс, в течение которого будет отображено сообщение об ошибке. Значение по умолчанию - таймаут не задан (окно не закрывается).
- `message_service_warning_timeout` время в мс, в течение которого будет отображено предупреждающее сообщение. Значение по умолчанию - таймаут не задан (окно не закрывается).
- `message_service_success_timeout` время в мс, в течение которого будет отображено сообщение об успехе. Значение по умолчанию - таймаут не задан (окно не закрывается).
- `message_service_info_timeout` время в мс, в течение которого будет отображено информационное сообщение. Значение по умолчанию - таймаут не задан (окно не закрывается).
## Электронная подпись
### Esmart
- `electronic_sign.esmart_extension_url` - url для создания расширенной подписи. Подробная информация по ссылке [http://demo.esmart.ru](http://demo.esmart.ru)
- `electronic_sign.tsp_address` - адрес сервера службы штампов времени
Пример:
```text
"electronic_sign.esmart_extension_url": "http://dsig.ibsdemo.ru/ibs_dsig/ibs_dSig.asmx"
```
## Способ аутентификации
- `auth_method` - способ аутентификации. Может принимать одно значение из списка: form, kerberos, cert_over_db, cert_over_ldap
## Url проекта
- `backend.url` - задает url для проека. Если параметра нет, то берется дефолтные:
```
window.location.protocol + '//' + window.location.hostname + ':' + window.location.port + '/backend'
```
Пример:
```
http://10.10.31.80:8080/
```
## Таймер очистки закешированных значений фильтров
- `filter_cleanup_interval_hours` - время жизни закешированного значения фильтра в часах. По умолчанию - 720 часов,
- `filter_cleanup_check_period_minutes` - период проверки наличия просроченных закешированных значений в минутах. По умолчанию - 30 минут
## Добавление версии приложения в URL при запросах к frontend-у
В модуле frontend в src/resources/app-config.json добавлены 2 переменные
- `"enable.version.in.url": "%enable.version.in.url%"` - подставлять ли версию в URL приложения. По умолчанию false. Если сборка произведена
- `"app.version": "%project.version%"` - версия приложения.
с профилем `enable-version-in-url`, то значение будет true.
## Добавление Jivo чат в проект
Свойства задаются в файле frontend/src/resources/app-config.json или frontend.war/src/resources/app-config.json
- `jivo_chat_widget_api_url` - API url для работы Jivo чата. Необходимо заменить {WIDGET_ID} на реальный Widget API ID
- `jivo_chat_widget_enabled` - параметр отвечающий за активацию Jivo чата. По дефолту false, для активации задать true.
Пример:
```json
"jivo_chat_widget_api_url": "https://code.jivo.ru/widget/{WIDGET_ID}",
"jivo_chat_widget_enabled": false
```
# Прочее
## Смена удалённого репозитория
1. Смените адрес NPM registry в файле frontend.npmrc. Пример - registry=https://repo.example.com/repository/npm-all/
2. Поменяйте ссылки в блоке , файла pom.xml

2
config/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/*.ear
/*.jar

42
config/Dockerfile Normal file
View file

@ -0,0 +1,42 @@
FROM quay.io/wildfly/wildfly:26.1.3.Final-jdk17
USER root
ARG POSTGRES_DRIVER_VERSION=42.7.3
RUN yum-config-manager --disable base --disable extras --disable updates \
&& yum-config-manager --enable C7.8.2003-base --enable C7.8.2003-extras --enable C7.8.2003-updates \
&& yum -y --disableplugin=fastestmirror install sudo \
&& chown -R jboss: /opt/jboss/
USER jboss
WORKDIR $JBOSS_HOME
ENV JAVA_ARGS=-Xmx3g
RUN echo 'JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=*:8787,server=y,suspend=n"' >> bin/standalone.conf && \
echo 'JAVA_OPTS="$JAVA_OPTS -XX:MaxMetaspaceSize=1g"' >> bin/standalone.conf && \
echo 'JAVA_OPTS="$JAVA_OPTS -XX:+UseStringDeduplication -XX:+ParallelRefProcEnabled -XX:+ExplicitGCInvokesConcurrent"' >> bin/standalone.conf && \
echo 'JAVA_OPTS="$JAVA_OPTS -XX:+UnlockDiagnosticVMOptions -XX:G1SummarizeRSetStatsPeriod=1"' >> bin/standalone.conf && \
echo 'JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8"' >> bin/standalone.conf && \
echo 'JAVA_OPTS="$JAVA_OPTS -XX:-OmitStackTraceInFastThrow"' >> bin/standalone.conf && \
echo 'JAVA_OPTS="$JAVA_OPTS -Dorg.jboss.logmanager.nocolor=true"' >> bin/standalone.conf && \
echo 'JAVA_OPTS="$JAVA_OPTS $JAVA_ARGS"' >> bin/standalone.conf
USER root
RUN localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
RUN echo "LANG=\"ru_RU.UTF-8\"" > /etc/locale.conf
USER jboss
ENV LANG ru_RU.UTF-8
ENV LANGUAGE ru_RU.UTF-8
ENV LC_ALL ru_RU.UTF-8
COPY --chown=jboss entrypoint.sh .
COPY --chown=jboss patches patches
RUN (cd patches && wget https://repo.micord.ru/repository/libs-releases-local/org/jboss/ironjacamar/ironjacamar-core-impl/1.5.3.Final/ironjacamar-core-impl-1.5.3.Final.jar)
RUN (cd patches/system && wget https://repo1.maven.org/maven2/org/postgresql/postgresql/$POSTGRES_DRIVER_VERSION/postgresql-$POSTGRES_DRIVER_VERSION.jar -O postgresql-driver.jar)
RUN chmod -R +x patches && \
chmod +x entrypoint.sh && \
./entrypoint.sh && \
rm -rf patches
ENV SERVER_START=true
COPY --chown=jboss *.ear $JBOSS_HOME/standalone/deployments/
HEALTHCHECK --timeout=3s --start-period=3600s CMD curl --fail 127.0.0.1:8080/ervu_usr_autority/version || exit 1

1
config/JDK_version Normal file
View file

@ -0,0 +1 @@
17

20
config/db.env Normal file
View file

@ -0,0 +1,20 @@
# App datasource
DB_APP_USERNAME=ervu
DB_APP_PASSWORD=ervu_password
DB_APP_HOST=db
DB_APP_PORT=5432
DB_APP_NAME=ervu_usr_autority
# Security datasource
DB_SEC_USERNAME=ervu
DB_SEC_PASSWORD=ervu_password
DB_SEC_HOST=db
DB_SEC_PORT=5432
DB_SEC_NAME=ervu_usr_autority
# jBPM datasorce
DB_JBPM_USERNAME=ervu_jbpm
DB_JBPM_PASSWORD=ervu_jbpm_password
DB_JBPM_HOST=db
DB_JBPM_PORT=5432
DB_JBPM_NAME=ervu_usr_autority_jbpm

555
config/dev/standalone.xml Normal file
View file

@ -0,0 +1,555 @@
<?xml version="1.0" ?>
<server xmlns="urn:jboss:domain:19.0">
<extensions>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.deployment-scanner"/>
<extension module="org.jboss.as.ee"/>
<extension module="org.jboss.as.ejb3"/>
<extension module="org.jboss.as.jaxrs"/>
<extension module="org.jboss.as.jdr"/>
<extension module="org.jboss.as.jmx"/>
<extension module="org.jboss.as.jpa"/>
<extension module="org.jboss.as.jsf"/>
<extension module="org.jboss.as.logging"/>
<extension module="org.jboss.as.mail"/>
<extension module="org.jboss.as.naming"/>
<extension module="org.jboss.as.pojo"/>
<extension module="org.jboss.as.remoting"/>
<extension module="org.jboss.as.sar"/>
<extension module="org.jboss.as.transactions"/>
<extension module="org.jboss.as.webservices"/>
<extension module="org.jboss.as.weld"/>
<extension module="org.wildfly.extension.batch.jberet"/>
<extension module="org.wildfly.extension.bean-validation"/>
<extension module="org.wildfly.extension.clustering.web"/>
<extension module="org.wildfly.extension.core-management"/>
<extension module="org.wildfly.extension.discovery"/>
<extension module="org.wildfly.extension.ee-security"/>
<extension module="org.wildfly.extension.elytron"/>
<extension module="org.wildfly.extension.elytron-oidc-client"/>
<extension module="org.wildfly.extension.health"/>
<extension module="org.wildfly.extension.io"/>
<extension module="org.wildfly.extension.metrics"/>
<extension module="org.wildfly.extension.microprofile.config-smallrye"/>
<extension module="org.wildfly.extension.microprofile.jwt-smallrye"/>
<extension module="org.wildfly.extension.microprofile.opentracing-smallrye"/>
<extension module="org.wildfly.extension.request-controller"/>
<extension module="org.wildfly.extension.security.manager"/>
<extension module="org.wildfly.extension.undertow"/>
</extensions>
<system-properties>
<property name="webbpm.mode" value="development"/>
<property name="authentication.method" value="form"/>
<property name="jboss.bind.address.management" value="0.0.0.0"/>
<property name="jboss.bind.address" value="0.0.0.0"/>
<property name="ldap.mapping.login.param" value="${env.WEBBPM_LDAP_LOGIN_ATTR:uid}"/>
<property name="ldap.mapping.org.code.param" value="${env.WEBBPM_LDAP_ORGANIZATION_ATTR:ou}"/>
<property name="jboss.as.management.blocking.timeout" value="900"/>
<property name="webbpm.cache.hazelcast.hosts" value="127.0.0.1"/>
<property name="webbpm.cache.hazelcast.outbound_port_definitions" value="5801-5820"/>
<property name="webbpm.security.session.active.count" value="20"/>
<property name="gar.enable" value="false"/>
<property name="bpmn.enable" value="false"/>
<property name="security.password.regex" value="^((?=(.*\d){1,})(?=.*[a-zа-яё])(?=.*[A-ZА-ЯЁ]).{8,})$"/>
<property name="fias.enable" value="false"/>
<property name="com.arjuna.ats.arjuna.allowMultipleLastResources" value="true"/>
</system-properties>
<management>
<audit-log>
<formatters>
<json-formatter name="json-formatter"/>
</formatters>
<handlers>
<file-handler name="file" formatter="json-formatter" path="audit-log.log" relative-to="jboss.server.data.dir"/>
</handlers>
<logger log-boot="true" log-read-only="false" enabled="false">
<handlers>
<handler name="file"/>
</handlers>
</logger>
</audit-log>
<management-interfaces>
<http-interface http-authentication-factory="management-http-authentication">
<http-upgrade enabled="true" sasl-authentication-factory="management-sasl-authentication"/>
<socket-binding http="management-http"/>
</http-interface>
</management-interfaces>
<access-control provider="simple">
<role-mapping>
<role name="SuperUser">
<include>
<user name="$local"/>
</include>
</role>
</role-mapping>
</access-control>
</management>
<profile>
<subsystem xmlns="urn:jboss:domain:logging:8.0">
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<named-formatter name="COLOR-PATTERN"/>
</formatter>
</console-handler>
<periodic-rotating-file-handler name="FILE" autoflush="true">
<formatter>
<named-formatter name="PATTERN"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="io.jaegertracing.Configuration">
<level name="WARN"/>
</logger>
<logger category="org.jboss.as.config">
<level name="DEBUG"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<logger category="org.jooq.tools">
<level name="DEBUG"/>
<handlers>
<handler name="CONSOLE"/>
</handlers>
</logger>
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
<formatter name="PATTERN">
<pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
</formatter>
<formatter name="COLOR-PATTERN">
<pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
</formatter>
</subsystem>
<subsystem xmlns="urn:jboss:domain:batch-jberet:3.0">
<default-job-repository name="in-memory"/>
<default-thread-pool name="batch"/>
<job-repository name="in-memory">
<in-memory/>
</job-repository>
<thread-pool name="batch">
<max-threads count="10"/>
<keepalive-time time="30" unit="seconds"/>
</thread-pool>
</subsystem>
<subsystem xmlns="urn:jboss:domain:bean-validation:1.0"/>
<subsystem xmlns="urn:jboss:domain:core-management:1.0"/>
<subsystem xmlns="urn:jboss:domain:datasources:7.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/jbpmDS" pool-name="JBPMDS" enabled="true" statistics-enabled="true">
<connection-url>jdbc:h2:mem:jbpm;DB_CLOSE_DELAY=-1</connection-url>
<driver>h2</driver>
<security>
<user-name>${env.DB_JBPM_USERNAME:sa}</user-name>
<password>${env.DB_JBPM_PASSWORD:sa}</password>
</security>
<timeout>
<query-timeout>300</query-timeout>
</timeout>
</datasource>
<datasource jndi-name="java:/webbpm/security-ds" pool-name="SECURITYDS" enabled="true" statistics-enabled="true">
<connection-url>jdbc:postgresql://10.10.31.118:5432/ervu_usr_autority</connection-url>
<driver>postgres</driver>
<security>
<user-name>ervu</user-name>
<password>ervu</password>
</security>
<timeout>
<query-timeout>300</query-timeout>
</timeout>
</datasource>
<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
<driver name="postgres" module="org.postgresql">
<xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
<subsystem xmlns="urn:jboss:domain:deployment-scanner:2.0">
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:discovery:1.0"/>
<subsystem xmlns="urn:jboss:domain:distributable-web:2.0" default-session-management="default" default-single-sign-on-management="default">
<infinispan-session-management name="default" cache-container="web" granularity="SESSION">
<local-affinity/>
</infinispan-session-management>
<infinispan-single-sign-on-management name="default" cache-container="web" cache="sso"/>
<local-routing/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:ee:6.0">
<spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
<concurrent>
<context-services>
<context-service name="default" jndi-name="java:jboss/ee/concurrency/context/default" use-transaction-setup-provider="true"/>
</context-services>
<managed-thread-factories>
<managed-thread-factory name="default" jndi-name="java:jboss/ee/concurrency/factory/default" context-service="default"/>
</managed-thread-factories>
<managed-executor-services>
<managed-executor-service name="default" jndi-name="java:jboss/ee/concurrency/executor/default" context-service="default" hung-task-termination-period="0" hung-task-threshold="60000" keepalive-time="5000"/>
</managed-executor-services>
<managed-scheduled-executor-services>
<managed-scheduled-executor-service name="default" jndi-name="java:jboss/ee/concurrency/scheduler/default" context-service="default" hung-task-termination-period="0" hung-task-threshold="60000" keepalive-time="3000"/>
</managed-scheduled-executor-services>
</concurrent>
</subsystem>
<subsystem xmlns="urn:jboss:domain:ee-security:1.0"/>
<subsystem xmlns="urn:jboss:domain:ejb3:9.0">
<session-bean>
<stateless>
<bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
</stateless>
<stateful default-access-timeout="5000" cache-ref="simple" passivation-disabled-cache-ref="simple"/>
<singleton default-access-timeout="5000"/>
</session-bean>
<pools>
<bean-instance-pools>
<strict-max-pool name="mdb-strict-max-pool" derive-size="from-cpu-count" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
<strict-max-pool name="slsb-strict-max-pool" derive-size="from-worker-pools" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
</bean-instance-pools>
</pools>
<caches>
<cache name="simple"/>
<cache name="distributable" passivation-store-ref="infinispan" aliases="passivating clustered"/>
</caches>
<passivation-stores>
<passivation-store name="infinispan" cache-container="ejb" max-size="10000"/>
</passivation-stores>
<async thread-pool-name="default"/>
<timer-service thread-pool-name="default" default-data-store="default-file-store">
<data-stores>
<file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/>
</data-stores>
</timer-service>
<remote cluster="ejb" connectors="http-remoting-connector" thread-pool-name="default">
<channel-creation-options>
<option name="MAX_OUTBOUND_MESSAGES" value="1234" type="remoting"/>
</channel-creation-options>
</remote>
<thread-pools>
<thread-pool name="default">
<max-threads count="10"/>
<keepalive-time time="60" unit="seconds"/>
</thread-pool>
</thread-pools>
<default-security-domain value="other"/>
<application-security-domains>
<application-security-domain name="other" security-domain="ApplicationDomain"/>
</application-security-domains>
<default-missing-method-permissions-deny-access value="true"/>
<statistics enabled="${wildfly.ejb3.statistics-enabled:${wildfly.statistics-enabled:false}}"/>
<log-system-exceptions value="true"/>
</subsystem>
<subsystem xmlns="urn:wildfly:elytron:15.1" final-providers="combined-providers" disallowed-providers="OracleUcrypto">
<providers>
<aggregate-providers name="combined-providers">
<providers name="elytron"/>
<providers name="openssl"/>
</aggregate-providers>
<provider-loader name="elytron" module="org.wildfly.security.elytron"/>
<provider-loader name="openssl" module="org.wildfly.openssl"/>
</providers>
<audit-logging>
<file-audit-log name="local-audit" path="audit.log" relative-to="jboss.server.log.dir" format="JSON"/>
</audit-logging>
<security-domains>
<security-domain name="ManagementDomain" default-realm="ManagementRealm" permission-mapper="default-permission-mapper">
<realm name="ManagementRealm" role-decoder="groups-to-roles"/>
<realm name="local" role-mapper="super-user-mapper"/>
</security-domain>
<security-domain name="ApplicationDomain" default-realm="ApplicationRealm" permission-mapper="default-permission-mapper">
<realm name="ApplicationRealm" role-decoder="groups-to-roles"/>
<realm name="local"/>
</security-domain>
</security-domains>
<security-realms>
<identity-realm name="local" identity="$local"/>
<properties-realm name="ApplicationRealm">
<users-properties path="application-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ApplicationRealm"/>
<groups-properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
</properties-realm>
<properties-realm name="ManagementRealm">
<users-properties path="mgmt-users.properties" relative-to="jboss.server.config.dir" digest-realm-name="ManagementRealm"/>
<groups-properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
</properties-realm>
</security-realms>
<mappers>
<simple-permission-mapper name="default-permission-mapper" mapping-mode="first">
<permission-mapping>
<principal name="anonymous"/>
<permission-set name="default-permissions"/>
</permission-mapping>
<permission-mapping match-all="true">
<permission-set name="login-permission"/>
<permission-set name="default-permissions"/>
</permission-mapping>
</simple-permission-mapper>
<constant-realm-mapper name="local" realm-name="local"/>
<simple-role-decoder name="groups-to-roles" attribute="groups"/>
<constant-role-mapper name="super-user-mapper">
<role name="SuperUser"/>
</constant-role-mapper>
</mappers>
<permission-sets>
<permission-set name="login-permission">
<permission class-name="org.wildfly.security.auth.permission.LoginPermission"/>
</permission-set>
<permission-set name="default-permissions">
<permission class-name="org.wildfly.extension.batch.jberet.deployment.BatchPermission" module="org.wildfly.extension.batch.jberet" target-name="*"/>
<permission class-name="org.wildfly.transaction.client.RemoteTransactionPermission" module="org.wildfly.transaction.client"/>
<permission class-name="org.jboss.ejb.client.RemoteEJBPermission" module="org.jboss.ejb-client"/>
</permission-set>
</permission-sets>
<http>
<http-authentication-factory name="management-http-authentication" security-domain="ManagementDomain" http-server-mechanism-factory="global">
<mechanism-configuration>
<mechanism mechanism-name="DIGEST">
<mechanism-realm realm-name="ManagementRealm"/>
</mechanism>
</mechanism-configuration>
</http-authentication-factory>
<http-authentication-factory name="application-http-authentication" security-domain="ApplicationDomain" http-server-mechanism-factory="global">
<mechanism-configuration>
<mechanism mechanism-name="BASIC">
<mechanism-realm realm-name="ApplicationRealm"/>
</mechanism>
</mechanism-configuration>
</http-authentication-factory>
<provider-http-server-mechanism-factory name="global"/>
</http>
<sasl>
<sasl-authentication-factory name="management-sasl-authentication" sasl-server-factory="configured" security-domain="ManagementDomain">
<mechanism-configuration>
<mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>
<mechanism mechanism-name="DIGEST-MD5">
<mechanism-realm realm-name="ManagementRealm"/>
</mechanism>
</mechanism-configuration>
</sasl-authentication-factory>
<sasl-authentication-factory name="application-sasl-authentication" sasl-server-factory="configured" security-domain="ApplicationDomain">
<mechanism-configuration>
<mechanism mechanism-name="JBOSS-LOCAL-USER" realm-mapper="local"/>
<mechanism mechanism-name="DIGEST-MD5">
<mechanism-realm realm-name="ApplicationRealm"/>
</mechanism>
</mechanism-configuration>
</sasl-authentication-factory>
<configurable-sasl-server-factory name="configured" sasl-server-factory="elytron">
<properties>
<property name="wildfly.sasl.local-user.default-user" value="$local"/>
<property name="wildfly.sasl.local-user.challenge-path" value="${jboss.server.temp.dir}/auth"/>
</properties>
</configurable-sasl-server-factory>
<mechanism-provider-filtering-sasl-server-factory name="elytron" sasl-server-factory="global">
<filters>
<filter provider-name="WildFlyElytron"/>
</filters>
</mechanism-provider-filtering-sasl-server-factory>
<provider-sasl-server-factory name="global"/>
</sasl>
<tls>
<key-stores>
<key-store name="applicationKS">
<credential-reference clear-text="password"/>
<implementation type="JKS"/>
<file path="application.keystore" relative-to="jboss.server.config.dir"/>
</key-store>
</key-stores>
<key-managers>
<key-manager name="applicationKM" key-store="applicationKS" generate-self-signed-certificate-host="localhost">
<credential-reference clear-text="password"/>
</key-manager>
</key-managers>
<server-ssl-contexts>
<server-ssl-context name="applicationSSC" key-manager="applicationKM"/>
</server-ssl-contexts>
</tls>
</subsystem>
<subsystem xmlns="urn:wildfly:elytron-oidc-client:1.0"/>
<subsystem xmlns="urn:wildfly:health:1.0" security-enabled="false"/>
<subsystem xmlns="urn:jboss:domain:infinispan:13.0">
<cache-container name="ejb" default-cache="passivation" marshaller="PROTOSTREAM" aliases="sfsb" modules="org.wildfly.clustering.ejb.infinispan">
<local-cache name="passivation">
<expiration interval="0"/>
<file-store passivation="true" purge="false"/>
</local-cache>
</cache-container>
<cache-container name="web" default-cache="passivation" marshaller="PROTOSTREAM" modules="org.wildfly.clustering.web.infinispan">
<local-cache name="passivation">
<expiration interval="0"/>
<file-store passivation="true" purge="false"/>
</local-cache>
<local-cache name="sso">
<expiration interval="0"/>
</local-cache>
</cache-container>
<cache-container name="server" default-cache="default" marshaller="PROTOSTREAM" modules="org.wildfly.clustering.server">
<local-cache name="default">
<expiration interval="0"/>
</local-cache>
</cache-container>
<cache-container name="hibernate" marshaller="JBOSS" modules="org.infinispan.hibernate-cache">
<local-cache name="entity">
<heap-memory size="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="local-query">
<heap-memory size="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="timestamps">
<expiration interval="0"/>
</local-cache>
<local-cache name="pending-puts">
<expiration max-idle="60000"/>
</local-cache>
</cache-container>
</subsystem>
<subsystem xmlns="urn:jboss:domain:io:3.0">
<worker name="default"/>
<buffer-pool name="default"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jaxrs:2.0"/>
<subsystem xmlns="urn:jboss:domain:jca:5.0">
<archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
<bean-validation enabled="true"/>
<default-workmanager>
<short-running-threads>
<core-threads count="50"/>
<queue-length count="50"/>
<max-threads count="50"/>
<keepalive-time time="10" unit="seconds"/>
</short-running-threads>
<long-running-threads>
<core-threads count="50"/>
<queue-length count="50"/>
<max-threads count="50"/>
<keepalive-time time="10" unit="seconds"/>
</long-running-threads>
</default-workmanager>
<cached-connection-manager/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jdr:1.0"/>
<subsystem xmlns="urn:jboss:domain:jmx:1.3">
<expose-resolved-model/>
<expose-expression-model/>
<remoting-connector/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jpa:1.1">
<jpa default-extended-persistence-inheritance="DEEP"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jsf:1.1"/>
<subsystem xmlns="urn:jboss:domain:mail:4.0">
<mail-session name="default" jndi-name="java:jboss/mail/Default">
<smtp-server outbound-socket-binding-ref="mail-smtp"/>
</mail-session>
</subsystem>
<subsystem xmlns="urn:wildfly:metrics:1.0" security-enabled="false" exposed-subsystems="*" prefix="${wildfly.metrics.prefix:wildfly}"/>
<subsystem xmlns="urn:wildfly:microprofile-config-smallrye:2.0"/>
<subsystem xmlns="urn:wildfly:microprofile-jwt-smallrye:1.0"/>
<subsystem xmlns="urn:wildfly:microprofile-opentracing-smallrye:3.0" default-tracer="jaeger">
<jaeger-tracer name="jaeger">
<sampler-configuration sampler-type="const" sampler-param="1.0"/>
</jaeger-tracer>
</subsystem>
<subsystem xmlns="urn:jboss:domain:naming:2.0">
<remote-naming/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
<subsystem xmlns="urn:jboss:domain:remoting:4.0">
<http-connector name="http-remoting-connector" connector-ref="default" sasl-authentication-factory="application-sasl-authentication"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:request-controller:1.0"/>
<subsystem xmlns="urn:jboss:domain:resource-adapters:6.1"/>
<subsystem xmlns="urn:jboss:domain:sar:1.0"/>
<subsystem xmlns="urn:jboss:domain:security-manager:1.0">
<deployment-permissions>
<maximum-set>
<permission class="java.security.AllPermission"/>
</maximum-set>
</deployment-permissions>
</subsystem>
<subsystem xmlns="urn:jboss:domain:transactions:6.0">
<core-environment node-identifier="${jboss.tx.node.id:1}">
<process-id>
<uuid/>
</process-id>
</core-environment>
<recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
<coordinator-environment statistics-enabled="${wildfly.transactions.statistics-enabled:${wildfly.statistics-enabled:false}}"/>
<object-store path="tx-object-store" relative-to="jboss.server.data.dir"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:undertow:12.0" default-server="default-server" default-virtual-host="default-host" default-servlet-container="default" default-security-domain="other" statistics-enabled="${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http" max-post-size="${env.MAX_POST_SIZE:104857600}" record-request-start-time="true" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" ssl-context="applicationSSC" enable-http2="true"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<filter-ref name="cache-control" predicate="path-suffix['.bpmn'] or path-suffix['.bpmn2']"/>
<http-invoker http-authentication-factory="application-http-authentication"/>
</host>
</server>
<servlet-container name="default">
<jsp-config/>
<websockets/>
</servlet-container>
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
</handlers>
<filters>
<response-header name="cache-control" header-name="Cache-Control" header-value="no-store"/>
</filters>
<application-security-domains>
<application-security-domain name="other" security-domain="ApplicationDomain"/>
</application-security-domains>
</subsystem>
<subsystem xmlns="urn:jboss:domain:webservices:2.0" statistics-enabled="${wildfly.webservices.statistics-enabled:${wildfly.statistics-enabled:false}}">
<wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
<endpoint-config name="Standard-Endpoint-Config"/>
<endpoint-config name="Recording-Endpoint-Config">
<pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
<handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
</pre-handler-chain>
</endpoint-config>
<client-config name="Standard-Client-Config"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:weld:4.0"/>
</profile>
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
</interfaces>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
<socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
<socket-binding name="http" port="${jboss.http.port:8080}"/>
<socket-binding name="https" port="${jboss.https.port:8443}"/>
<socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
<socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
<outbound-socket-binding name="mail-smtp">
<remote-destination host="${jboss.mail.server.host:localhost}" port="${jboss.mail.server.port:25}"/>
</outbound-socket-binding>
</socket-binding-group>
</server>

View file

@ -0,0 +1,43 @@
version: "3"
volumes:
db-data:
services:
db:
image: postgres:15
restart: unless-stopped
volumes:
- ./initdb.d:/docker-entrypoint-initdb.d
- db-data:/var/lib/postgresql/data
command:
- "--max_prepared_transactions=100"
ports:
- 5432
# - "127.0.0.1:5432:5432"
environment:
- POSTGRES_PASSWORD=supersecretpassword
- TZ="Europe/Moscow"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
webbpm-app:
build:
context: .
dockerfile: Dockerfile
depends_on:
db:
condition: service_healthy
ports:
- 9990
- 8080
- 8787
- 12345
environment:
- TZ="Europe/Moscow"
env_file:
- db.env

48
config/entrypoint.sh Normal file
View file

@ -0,0 +1,48 @@
#! /bin/bash
set -e
function wait_for_server() {
until `$JBOSS_HOME/bin/jboss-cli.sh -c ":read-attribute(name=server-state)" 2> /dev/null | grep -q running`; do
echo "Retry ..."
done
}
echo "dump environment variables to env.properties file"
printenv > env.properties
echo "starting JBoss"
nohup $JBOSS_HOME/bin/standalone.sh --admin-only 1>&2 2>/dev/null &
# running system patches
wait_for_server
$JBOSS_HOME/bin/jboss-cli.sh --connect --file="./patches/system/init.cli" --properties=env.properties
$JBOSS_HOME/bin/jboss-cli.sh --connect --file="./patches/system/add-postgresql-driver.cli" --properties=env.properties
bash "./patches/system/add-demo-user.sh"
# running project patches
find ./patches/ -type f -name '*.cli' -not -path './patches/system/*' -print0 |
while IFS= read -r -d '' f; do
wait_for_server
echo "running $f"
$JBOSS_HOME/bin/jboss-cli.sh --connect --file="$f" --properties=env.properties
done;
find ./patches/ -type f -name '*.sh' -not -path './patches/system/*' -print0 |
while IFS= read -r -d '' f; do
wait_for_server
echo "running $f"
bash "$f"
done
echo "stopping JBoss"
wait_for_server
$JBOSS_HOME/bin/jboss-cli.sh --connect --command=:shutdown
if ! [[ -z $SERVER_START ]]; then
echo "starting JBoss in standalone"
sleep 10 # without this occurs error "address already in use"
/opt/jboss/wildfly/bin/standalone.sh -c standalone.xml -b 0.0.0.0 -bmanagement 0.0.0.0
else
echo "cleaning up JBoss logs"
rm -rf $JBOSS_HOME/standalone/log
fi

View file

@ -0,0 +1,26 @@
CREATE ROLE "ervu" WITH
LOGIN
NOSUPERUSER
INHERIT
NOCREATEDB
NOCREATEROLE
NOREPLICATION
PASSWORD 'ervu_password';
CREATE ROLE "ervu_jbpm" WITH
LOGIN
NOSUPERUSER
INHERIT
NOCREATEDB
NOCREATEROLE
NOREPLICATION
PASSWORD 'ervu_jbpm_password';
CREATE DATABASE "ervu_usr_autority"
WITH
OWNER = "ervu";
CREATE DATABASE "ervu_usr_autority_jbpm"
WITH
OWNER = "ervu_jbpm";

File diff suppressed because one or more lines are too long

13
config/micord.env Normal file
View file

@ -0,0 +1,13 @@
# App datasource
DB_APP_USERNAME=ervu
DB_APP_PASSWORD=ervu
DB_APP_HOST=10.10.31.118
DB_APP_PORT=5432
DB_APP_NAME=ervu_usr_autority
# Security datasource
DB_SEC_USERNAME=ervu
DB_SEC_PASSWORD=ervu
DB_SEC_HOST=10.10.31.118
DB_SEC_PORT=5432
DB_SEC_NAME=ervu_usr_autority

View file

@ -0,0 +1,3 @@
/subsystem=logging/logger=org.jooq.tools:add()
/subsystem=logging/logger=org.jooq.tools:write-attribute(name=level, value=DEBUG)
/subsystem=logging/logger=org.jooq.tools:add-handler(name=CONSOLE)

View file

@ -0,0 +1,67 @@
xa-data-source add \
--name=AppDS \
--enabled=true \
--driver-name=postgresql \
--jndi-name=java:/webbpm/AppDS \
--user-name=${env.DB_APP_USERNAME:app_user} \
--password=${env.DB_APP_PASSWORD:apppassword} \
--use-ccm=true \
--valid-connection-checker-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker \
--validate-on-match=false \
--background-validation=true \
--background-validation-millis=5000 \
--exception-sorter-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter \
--statistics-enabled=true \
--max-pool-size=50 \
--query-timeout=300 \
--xa-datasource-properties=ServerName=${env.DB_APP_HOST:db},PortNumber=${env.DB_APP_PORT:5432},DatabaseName=${env.DB_APP_NAME:app}
xa-data-source add \
--name=JBPMDS \
--enabled=true \
--driver-name=postgresql \
--jndi-name=java:jboss/datasources/jbpmDS \
--user-name=${env.DB_JBPM_USERNAME:jbpm} \
--password=${env.DB_JBPM_PASSWORD:jbpmpassword} \
--use-ccm=true \
--valid-connection-checker-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker \
--validate-on-match=false \
--background-validation=true \
--background-validation-millis=5000 \
--exception-sorter-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter \
--statistics-enabled=true \
--max-pool-size=50 \
--query-timeout=300 \
--xa-datasource-properties=ServerName=${env.DB_JBPM_HOST:db},PortNumber=${env.DB_JBPM_PORT:5432},DatabaseName=${env.DB_JBPM_NAME:jbpm}
xa-data-source add \
--name=SECURITYDS \
--enabled=true \
--driver-name=postgresql \
--jndi-name=java:/webbpm/security-ds \
--user-name=${env.DB_SEC_USERNAME:security_user} \
--password=${env.DB_SEC_PASSWORD:secpassword} \
--max-pool-size=70 \
--valid-connection-checker-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker \
--validate-on-match=false \
--background-validation=true \
--background-validation-millis=5000 \
--exception-sorter-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter \
--statistics-enabled=true \
--query-timeout=300 \
--xa-datasource-properties=ServerName=${env.DB_SEC_HOST:db},PortNumber=${env.DB_SEC_PORT:5432},DatabaseName=${env.DB_SEC_NAME:app}
/system-property=ldap.mapping.login.param:add(value=${env.WEBBPM_LDAP_LOGIN_ATTR:uid})
/system-property=ldap.mapping.org.code.param:add(value=${env.WEBBPM_LDAP_ORGANIZATION_ATTR:ou})
/system-property=jboss.as.management.blocking.timeout:add(value=900)
/subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=record-request-start-time,value=true)
/subsystem=undertow/server=default-server/host=default-host/setting=access-log:add(pattern=%h %t "%r" %s %b %D)
/system-property=webbpm.cache.hazelcast.hosts:add(value="127.0.0.1")
/system-property=webbpm.cache.hazelcast.outbound_port_definitions:add(value="5801-5820")
/system-property=webbpm.security.session.active.count:add(value="20")
/system-property=gar.enable:add(value=false)
/system-property=security.password.regex:add(value="^((?=(.*\\d){1,})(?=.*[a-zа-яё])(?=.*[A-ZА-ЯЁ]).{8,})$")
/system-property=fias.enable:add(value=false)
/system-property=bpmn.enable:add(value=false)
/system-property=webbpm.security.cookie.httpOnly:add(value=${env.WEBBPM_SECURITY_COOKIE_HTTPONLY:true})
/system-property=webbpm.security.cookie.path:add(value=${env.WEBBPM_SECURITY_COOKIE_PATH:})

View file

@ -0,0 +1 @@
$JBOSS_HOME/bin/add-user.sh demo@example.com demo

View file

@ -0,0 +1,5 @@
/subsystem=datasources/jdbc-driver=postgresql:add( \
driver-name="postgresql", \
driver-module-name="org.postgresql", \
driver-xa-datasource-class-name="org.postgresql.xa.PGXADataSource" \
)

View file

@ -0,0 +1,14 @@
/system-property=webbpm.mode:add(value=production)
/system-property=authentication.method:add(value=form)
/subsystem=undertow/configuration=filter/gzip=gzipFilter:add()
/subsystem=undertow/server=default-server/host=default-host/\
filter-ref=gzipFilter:add(predicate="exists('%{o,Content-Type}') and regex(pattern='(?:application/javascript|text/css|text/html|text/xml|application/json)(;.*)?', value=%{o,Content-Type}, full-match=true)")
/subsystem=undertow/configuration=filter/response-header=vary-header:add(header-name="Vary", header-value="Accept-Encoding")
/subsystem=undertow/server=default-server/host=default-host/filter-ref=vary-header:add()
/subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=max-post-size,value=${env.MAX_POST_SIZE:104857600})
data-source remove --name=ExampleDS
/subsystem=ee/service=default-bindings:remove
/system-property=jboss.bind.address.management:add(value=0.0.0.0)
/system-property=jboss.bind.address:add(value=0.0.0.0)
module add --name=org.postgresql --resources=./patches/system/postgresql-driver.jar --dependencies=javax.api,javax.transaction.api
shutdown --restart

66
distribution/pom.xml Normal file
View file

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ervu_usr_autority</groupId>
<artifactId>ervu_usr_autority</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<groupId>ervu_usr_autority.ervu_usr_autority</groupId>
<artifactId>distribution</artifactId>
<packaging>ear</packaging>
<properties>
<backendContext>/${project.parent.artifactId}</backendContext>
</properties>
<dependencies>
<dependency>
<groupId>ervu_usr_autority.ervu_usr_autority</groupId>
<artifactId>backend</artifactId>
<type>war</type>
</dependency>
<dependency>
<groupId>ervu_usr_autority.ervu_usr_autority</groupId>
<artifactId>frontend</artifactId>
<type>war</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<modules>
<webModule>
<groupId>ervu_usr_autority.ervu_usr_autority</groupId>
<artifactId>frontend</artifactId>
<contextRoot>/</contextRoot>
<bundleFileName>frontend.war</bundleFileName>
</webModule>
<webModule>
<groupId>ervu_usr_autority.ervu_usr_autority</groupId>
<artifactId>backend</artifactId>
<contextRoot>${backendContext}</contextRoot>
<bundleFileName>${project.parent.artifactId}.war</bundleFileName>
</webModule>
</modules>
</configuration>
</plugin>
</plugins>
<finalName>${project.parent.artifactId}</finalName>
</build>
<profiles>
<profile>
<id>enable-version-in-url</id>
<properties>
<backendContext>/${project.parent.artifactId}-${project.version}</backendContext>
</properties>
</profile>
</profiles>
</project>

1
frontend/.npmrc Normal file
View file

@ -0,0 +1 @@
registry=https://repo.micord.ru/repository/npm-all/

71
frontend/angular.json Normal file
View file

@ -0,0 +1,71 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"webbpm-frontend": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist",
"index": "src/index.html",
"main": "src/ts/main.ts",
"tsConfig": "src/tsconfig.json",
"polyfills": "src/ts/polyfills.ts",
"assets": [
"src/resources"
],
"styles": [
],
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/moment/min/moment-with-locales.js",
"node_modules/moment-timezone/builds/moment-timezone-with-data.min.js",
"node_modules/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js",
"node_modules/selectize/dist/js/standalone/selectize.min.js",
"node_modules/downloadjs/download.min.js"
]
},
"configurations": {
"production": {
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "webbpm-frontend:build"
},
"configurations": {}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "webbpm-frontend:build"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [],
"exclude": []
}
}
}
}
},
"defaultProject": "webbpm-frontend"
}

10
frontend/bs-config.json Normal file
View file

@ -0,0 +1,10 @@
{
"port": 8000,
"open": false,
"files": [
"./**/*.{html,htm,css,js}"
],
"server": {
"baseDir": "./"
}
}

23
frontend/index.html Normal file
View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>ervu_usr_autority</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="icon" type="image/png" href="src/resources/img/logo.png"/>
<link rel="stylesheet" href="src/resources/css/style.css"/>
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<script src="systemjs.config.js"></script>
<script>
System.import('webbpm').catch(function (err) {
console.error(err);
});
</script>
</head>
<body webbpm class="webbpm ervu_usr_autority">
<div class="loader"></div>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>ervu_usr_autority</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="icon" type="image/png" href="src/resources/img/logo.png"/>
</head>
<body webbpm class="webbpm ervu_usr_autority">
<div class="loader"></div>
</body>
</html>

8929
frontend/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

103
frontend/package.json Normal file
View file

@ -0,0 +1,103 @@
{
"name": "ervu_usr_autority",
"version": "1.0.0",
"scripts": {
"lite": "node ./node_modules/lite-server/bin/lite-server",
"cleanup": "npm run cleanup-ngc && node ./node_modules/rimraf/bin ./build ./dist",
"cleanup-ngc": "node ./node_modules/rimraf/bin ./src/ts/**/*.js ./src/ts/**/*.json ./src/ts/page.routing.ts",
"cleanup-and-ngc": "npm run cleanup && npm run ngc",
"ngc": "node --max-old-space-size=14336 ./node_modules/@angular/compiler-cli/src/main -p tsconfig.aot.json",
"build-webpack": "node --max-old-space-size=14336 ./node_modules/webpack/bin/webpack --config webpack.aot.config.js --progress --profile",
"save-ts-metadata": "node save.ts.metadata.js",
"tsc": "node ./node_modules/typescript/bin/tsc",
"tsc-watch": "node ./node_modules/typescript/bin/tsc --watch",
"ts-watch": "node node_modules/cross-env/dist/bin/cross-env.js TSC_NONPOLLING_WATCHER=true npm run tsc-watch",
"ts": "npm install && npm run tsc",
"compile": "npm run ts-watch",
"install-compile": "npm install && npm run ts-watch"
},
"dependencies": {
"@angular/animations": "7.2.15",
"@angular/common": "7.2.15",
"@angular/compiler": "7.2.15",
"@angular/core": "7.2.15",
"@angular/forms": "7.2.15",
"@angular/http": "7.2.15",
"@angular/platform-browser": "7.2.15",
"@angular/platform-browser-dynamic": "7.2.15",
"@angular/router": "7.2.15",
"@ng-bootstrap/ng-bootstrap": "4.2.2-micord.1",
"@webbpm/base-package": "3.182.0",
"ag-grid-angular": "29.0.0-micord.4",
"ag-grid-community": "29.0.0-micord.4",
"angular-calendar": "0.28.28",
"autonumeric": "4.5.10-cg",
"bootstrap": "4.3.1",
"bootstrap-icons": "1.10.3",
"cadesplugin_api": "2.0.4-micord.1",
"chart.js": "3.8.0-cg.1",
"chartjs-adapter-moment": "1.0.0",
"core-js": "2.4.1",
"date-fns": "2.29.3",
"downloadjs": "1.4.8",
"eonasdan-bootstrap-datetimepicker": "4.17.47-micord.4",
"esmarttokenjs": "2.2.1-cg",
"font-awesome": "4.7.0",
"google-libphonenumber": "3.0.9",
"inputmask": "5.0.5-cg.2",
"jquery": "3.3.1",
"js-year-calendar": "1.0.0-cg.2",
"jsgantt-improved": "2.0.10-cg",
"moment": "2.17.1",
"moment-timezone": "0.5.11",
"ngx-cookie": "3.0.1",
"ngx-international-phone-number": "1.0.6",
"ngx-toastr": "10.2.0-cg",
"popper.js": "1.14.7",
"reflect-metadata": "0.1.13",
"rxjs": "6.4.0",
"rxjs-compat": "6.4.0",
"selectize": "0.12.4-cg.11",
"systemjs": "0.21.4",
"systemjs-plugin-babel": "0.0.25",
"tslib": "1.9.3",
"zone.js": "0.11.8"
},
"devDependencies": {
"@angular-devkit/build-optimizer": "0.13.9",
"@angular-devkit/core": "7.3.9",
"@angular/cli": "7.3.9",
"@angular/compiler-cli": "7.2.15",
"@angular/platform-server": "7.2.15",
"@babel/core": "7.18.10",
"@babel/preset-env": "7.18.10",
"@types/bootstrap": "3.3.39",
"@types/eslint": "7.2.5",
"@types/jquery": "2.0.49",
"@types/node": "7.0.5",
"@types/selectize": "0.12.33",
"ajv": "8.8.2",
"angular-router-loader": "0.8.5",
"angular2-template-loader": "0.6.2",
"babel-loader": "9.1.2",
"codelyzer": "5.2.1",
"copy-webpack-plugin": "5.0.3",
"cross-env": "5.2.1",
"css-loader": "6.11.0",
"del": "2.2.2",
"file-loader": "6.2.0",
"html-webpack-plugin": "5.6.0",
"lite-server": "2.3.0",
"mini-css-extract-plugin": "2.9.1",
"mkdirp": "3.0.1",
"raw-loader": "4.0.2",
"style-loader": "3.3.4",
"terser-webpack-plugin": "5.3.10",
"tslint": "5.13.1",
"typescript": "3.2.4",
"typescript-parser": "2.6.1-cg.2",
"webpack": "5.90.1",
"webpack-bundle-analyzer": "4.10.1",
"webpack-cli": "5.0.2"
}
}

113
frontend/pom.xml Normal file
View file

@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ervu_usr_autority</groupId>
<artifactId>ervu_usr_autority</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<groupId>ervu_usr_autority.ervu_usr_autority</groupId>
<artifactId>frontend</artifactId>
<packaging>war</packaging>
<build>
<plugins>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<id>replace-version-in-url</id>
<phase>process-resources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>${basedir}/src/resources/app-config.json</include>
<include>${basedir}/dist/src/resources/app-config.json</include>
<include>${basedir}/src/resources/app.version</include>
<include>${basedir}/dist/src/resources/app.version</include>
</includes>
<replacements>
<replacement>
<token>%project.version%</token>
<value>${project.version}</value>
</replacement>
<replacement>
<token>%enable.version.in.url%</token>
<value>${enable.version.in.url}</value>
</replacement>
</replacements>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<copyWebResources>false</copyWebResources>
<webResources>
<resource>
<directory>${basedir}</directory>
<includes>
<include>src/resources/**/*</include>
<include>build_dev/**/*</include>
<include>node_modules/**/*</include>
<include>index.html</include>
<include>systemjs.config.js</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>compile-ts</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
</profile>
<profile>
<id>prod</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<copyWebResources>false</copyWebResources>
<webResources>
<resource>
<directory>${basedir}/dist</directory>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>enable-version-in-url</id>
<properties>
<enable.version.in.url>true</enable.version.in.url>
</properties>
</profile>
</profiles>
</project>

23
frontend/preview.html Normal file
View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>Web BPM</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="icon" type="image/png" href="src/resources/img/logo.png"/>
<link rel="stylesheet" href="src/resources/css/style.css"/>
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<script src="systemjs.preview.config.js"></script>
<script>
System.import('preview').catch(function (err) {
console.error(err);
});
</script>
</head>
<body preview-container id="webbpm-angular-application-container" class="webbpm ervu_usr_autority">
<div class="loader"></div>
</body>
</html>

View file

@ -0,0 +1,72 @@
#!/usr/bin/env node
var tsp = require("typescript-parser");
var fs = require('fs');
var path = require('path');
var ts = require("typescript");
var parser = new tsp.TypescriptParser();
var excludedDirs = [
'generated-sources'
];
var walkFileTree = function (dir, action) {
if (typeof action !== "function") {
return;
}
fs.readdirSync(dir).forEach(function (file) {
var path = dir + "/" + file;
var stat = fs.statSync(path);
var extension = ".ts";
if (stat && stat.isDirectory() && excludedDirs.indexOf(file) === -1) {
walkFileTree(path, action);
}
else if (path.indexOf(extension, path.length - extension.length) !== -1) {
action(null, path);
}
});
};
var dateInLong = Date.now();
var arr = [];
var basePath = path.resolve(__dirname, "src/ts/");
walkFileTree(basePath, function (err, file) {
var content = fs.readFileSync(file).toString();
var jsonStructure = parser.parseTypescript(ts.createSourceFile(
file,
content,
ts.ScriptTarget.Latest,
true,
ts.ScriptKind.TS
),
'/');
jsonStructure['packageName'] = path.relative(path.resolve(__dirname, "src/ts/"),jsonStructure['filePath']);
jsonStructure['imports'].forEach( function (val) {
if (val.libraryName.startsWith(".")) {
val['libraryName'] = path.resolve(path.dirname(jsonStructure['filePath']), val['libraryName']);
val['libraryName'] = path.relative(path.resolve(__dirname, "src/ts/"), val['libraryName']);
val['libraryName'] = path.dirname(val['libraryName']).split(path.sep).join(".");
}
});
delete jsonStructure['filePath'];
jsonStructure['packageName'] = path.dirname(jsonStructure['packageName']).split(path.sep).join( ".");
arr.push(jsonStructure);
});
var cache = [];
fs.writeFileSync("./../.studio/typescript.metadata.json",
JSON.stringify(arr, function (key, value) {
if (typeof value === 'object' && value !== null) {
if (cache.indexOf(value) !== -1) {
// Circular reference found, discard key
return;
}
// Store value in our collection
cache.push(value);
}
return value;
}));
cache = null;
console.log("typescript parse time = " + (Date.now() - dateInLong));

Some files were not shown because too many files have changed in this diff Show more