feat: jooq generate
This commit is contained in:
parent
e799940c2d
commit
ad8cbab226
|
@ -11,6 +11,7 @@ import com.databasir.dao.tables.DatabaseDocumentHistory;
|
||||||
import com.databasir.dao.tables.DocumentRemark;
|
import com.databasir.dao.tables.DocumentRemark;
|
||||||
import com.databasir.dao.tables.Group;
|
import com.databasir.dao.tables.Group;
|
||||||
import com.databasir.dao.tables.Login;
|
import com.databasir.dao.tables.Login;
|
||||||
|
import com.databasir.dao.tables.OauthApp;
|
||||||
import com.databasir.dao.tables.OperationLog;
|
import com.databasir.dao.tables.OperationLog;
|
||||||
import com.databasir.dao.tables.Project;
|
import com.databasir.dao.tables.Project;
|
||||||
import com.databasir.dao.tables.ProjectSyncRule;
|
import com.databasir.dao.tables.ProjectSyncRule;
|
||||||
|
@ -80,6 +81,11 @@ public class Databasir extends SchemaImpl {
|
||||||
*/
|
*/
|
||||||
public final Login LOGIN = Login.LOGIN;
|
public final Login LOGIN = Login.LOGIN;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* oauth app info
|
||||||
|
*/
|
||||||
|
public final OauthApp OAUTH_APP = OauthApp.OAUTH_APP;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The table <code>databasir.operation_log</code>.
|
* The table <code>databasir.operation_log</code>.
|
||||||
*/
|
*/
|
||||||
|
@ -163,6 +169,7 @@ public class Databasir extends SchemaImpl {
|
||||||
DocumentRemark.DOCUMENT_REMARK,
|
DocumentRemark.DOCUMENT_REMARK,
|
||||||
Group.GROUP,
|
Group.GROUP,
|
||||||
Login.LOGIN,
|
Login.LOGIN,
|
||||||
|
OauthApp.OAUTH_APP,
|
||||||
OperationLog.OPERATION_LOG,
|
OperationLog.OPERATION_LOG,
|
||||||
Project.PROJECT,
|
Project.PROJECT,
|
||||||
ProjectSyncRule.PROJECT_SYNC_RULE,
|
ProjectSyncRule.PROJECT_SYNC_RULE,
|
||||||
|
|
|
@ -11,7 +11,6 @@ import com.databasir.dao.tables.TableColumnDocument;
|
||||||
import com.databasir.dao.tables.TableDocument;
|
import com.databasir.dao.tables.TableDocument;
|
||||||
import com.databasir.dao.tables.TableIndexDocument;
|
import com.databasir.dao.tables.TableIndexDocument;
|
||||||
import com.databasir.dao.tables.TableTriggerDocument;
|
import com.databasir.dao.tables.TableTriggerDocument;
|
||||||
import com.databasir.dao.tables.UserFavoriteProject;
|
|
||||||
|
|
||||||
import org.jooq.Index;
|
import org.jooq.Index;
|
||||||
import org.jooq.OrderField;
|
import org.jooq.OrderField;
|
||||||
|
@ -39,5 +38,4 @@ public class Indexes {
|
||||||
public static final Index TABLE_COLUMN_DOCUMENT_IDX_TABLE_DOCUMENT_ID = Internal.createIndex(DSL.name("idx_table_document_id"), TableColumnDocument.TABLE_COLUMN_DOCUMENT, new OrderField[] { TableColumnDocument.TABLE_COLUMN_DOCUMENT.TABLE_DOCUMENT_ID }, false);
|
public static final Index TABLE_COLUMN_DOCUMENT_IDX_TABLE_DOCUMENT_ID = Internal.createIndex(DSL.name("idx_table_document_id"), TableColumnDocument.TABLE_COLUMN_DOCUMENT, new OrderField[] { TableColumnDocument.TABLE_COLUMN_DOCUMENT.TABLE_DOCUMENT_ID }, false);
|
||||||
public static final Index TABLE_INDEX_DOCUMENT_IDX_TABLE_DOCUMENT_ID = Internal.createIndex(DSL.name("idx_table_document_id"), TableIndexDocument.TABLE_INDEX_DOCUMENT, new OrderField[] { TableIndexDocument.TABLE_INDEX_DOCUMENT.TABLE_DOCUMENT_ID }, false);
|
public static final Index TABLE_INDEX_DOCUMENT_IDX_TABLE_DOCUMENT_ID = Internal.createIndex(DSL.name("idx_table_document_id"), TableIndexDocument.TABLE_INDEX_DOCUMENT, new OrderField[] { TableIndexDocument.TABLE_INDEX_DOCUMENT.TABLE_DOCUMENT_ID }, false);
|
||||||
public static final Index TABLE_TRIGGER_DOCUMENT_IDX_TABLE_DOCUMENT_ID = Internal.createIndex(DSL.name("idx_table_document_id"), TableTriggerDocument.TABLE_TRIGGER_DOCUMENT, new OrderField[] { TableTriggerDocument.TABLE_TRIGGER_DOCUMENT.TABLE_DOCUMENT_ID }, false);
|
public static final Index TABLE_TRIGGER_DOCUMENT_IDX_TABLE_DOCUMENT_ID = Internal.createIndex(DSL.name("idx_table_document_id"), TableTriggerDocument.TABLE_TRIGGER_DOCUMENT, new OrderField[] { TableTriggerDocument.TABLE_TRIGGER_DOCUMENT.TABLE_DOCUMENT_ID }, false);
|
||||||
public static final Index USER_FAVORITE_PROJECT_IDX_USER_ID = Internal.createIndex(DSL.name("idx_user_id"), UserFavoriteProject.USER_FAVORITE_PROJECT, new OrderField[] { UserFavoriteProject.USER_FAVORITE_PROJECT.USER_ID }, false);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@ import com.databasir.dao.tables.DatabaseDocumentHistory;
|
||||||
import com.databasir.dao.tables.DocumentRemark;
|
import com.databasir.dao.tables.DocumentRemark;
|
||||||
import com.databasir.dao.tables.Group;
|
import com.databasir.dao.tables.Group;
|
||||||
import com.databasir.dao.tables.Login;
|
import com.databasir.dao.tables.Login;
|
||||||
|
import com.databasir.dao.tables.OauthApp;
|
||||||
import com.databasir.dao.tables.OperationLog;
|
import com.databasir.dao.tables.OperationLog;
|
||||||
import com.databasir.dao.tables.Project;
|
import com.databasir.dao.tables.Project;
|
||||||
import com.databasir.dao.tables.ProjectSyncRule;
|
import com.databasir.dao.tables.ProjectSyncRule;
|
||||||
|
@ -30,6 +31,7 @@ import com.databasir.dao.tables.records.DatabaseDocumentRecord;
|
||||||
import com.databasir.dao.tables.records.DocumentRemarkRecord;
|
import com.databasir.dao.tables.records.DocumentRemarkRecord;
|
||||||
import com.databasir.dao.tables.records.GroupRecord;
|
import com.databasir.dao.tables.records.GroupRecord;
|
||||||
import com.databasir.dao.tables.records.LoginRecord;
|
import com.databasir.dao.tables.records.LoginRecord;
|
||||||
|
import com.databasir.dao.tables.records.OauthAppRecord;
|
||||||
import com.databasir.dao.tables.records.OperationLogRecord;
|
import com.databasir.dao.tables.records.OperationLogRecord;
|
||||||
import com.databasir.dao.tables.records.ProjectRecord;
|
import com.databasir.dao.tables.records.ProjectRecord;
|
||||||
import com.databasir.dao.tables.records.ProjectSyncRuleRecord;
|
import com.databasir.dao.tables.records.ProjectSyncRuleRecord;
|
||||||
|
@ -71,6 +73,8 @@ public class Keys {
|
||||||
public static final UniqueKey<GroupRecord> KEY_GROUP_PRIMARY = Internal.createUniqueKey(Group.GROUP, DSL.name("KEY_group_PRIMARY"), new TableField[] { Group.GROUP.ID }, true);
|
public static final UniqueKey<GroupRecord> KEY_GROUP_PRIMARY = Internal.createUniqueKey(Group.GROUP, DSL.name("KEY_group_PRIMARY"), new TableField[] { Group.GROUP.ID }, true);
|
||||||
public static final UniqueKey<LoginRecord> KEY_LOGIN_PRIMARY = Internal.createUniqueKey(Login.LOGIN, DSL.name("KEY_login_PRIMARY"), new TableField[] { Login.LOGIN.ID }, true);
|
public static final UniqueKey<LoginRecord> KEY_LOGIN_PRIMARY = Internal.createUniqueKey(Login.LOGIN, DSL.name("KEY_login_PRIMARY"), new TableField[] { Login.LOGIN.ID }, true);
|
||||||
public static final UniqueKey<LoginRecord> KEY_LOGIN_UK_USER_ID = Internal.createUniqueKey(Login.LOGIN, DSL.name("KEY_login_uk_user_id"), new TableField[] { Login.LOGIN.USER_ID }, true);
|
public static final UniqueKey<LoginRecord> KEY_LOGIN_UK_USER_ID = Internal.createUniqueKey(Login.LOGIN, DSL.name("KEY_login_uk_user_id"), new TableField[] { Login.LOGIN.USER_ID }, true);
|
||||||
|
public static final UniqueKey<OauthAppRecord> KEY_OAUTH_APP_PRIMARY = Internal.createUniqueKey(OauthApp.OAUTH_APP, DSL.name("KEY_oauth_app_PRIMARY"), new TableField[] { OauthApp.OAUTH_APP.ID }, true);
|
||||||
|
public static final UniqueKey<OauthAppRecord> KEY_OAUTH_APP_UK_REGISTRATION_ID = Internal.createUniqueKey(OauthApp.OAUTH_APP, DSL.name("KEY_oauth_app_uk_registration_id"), new TableField[] { OauthApp.OAUTH_APP.REGISTRATION_ID }, true);
|
||||||
public static final UniqueKey<OperationLogRecord> KEY_OPERATION_LOG_PRIMARY = Internal.createUniqueKey(OperationLog.OPERATION_LOG, DSL.name("KEY_operation_log_PRIMARY"), new TableField[] { OperationLog.OPERATION_LOG.ID }, true);
|
public static final UniqueKey<OperationLogRecord> KEY_OPERATION_LOG_PRIMARY = Internal.createUniqueKey(OperationLog.OPERATION_LOG, DSL.name("KEY_operation_log_PRIMARY"), new TableField[] { OperationLog.OPERATION_LOG.ID }, true);
|
||||||
public static final UniqueKey<ProjectRecord> KEY_PROJECT_PRIMARY = Internal.createUniqueKey(Project.PROJECT, DSL.name("KEY_project_PRIMARY"), new TableField[] { Project.PROJECT.ID }, true);
|
public static final UniqueKey<ProjectRecord> KEY_PROJECT_PRIMARY = Internal.createUniqueKey(Project.PROJECT, DSL.name("KEY_project_PRIMARY"), new TableField[] { Project.PROJECT.ID }, true);
|
||||||
public static final UniqueKey<ProjectRecord> KEY_PROJECT_UK_GROUP_ID_NAME = Internal.createUniqueKey(Project.PROJECT, DSL.name("KEY_project_uk_group_id_name"), new TableField[] { Project.PROJECT.GROUP_ID, Project.PROJECT.NAME }, true);
|
public static final UniqueKey<ProjectRecord> KEY_PROJECT_UK_GROUP_ID_NAME = Internal.createUniqueKey(Project.PROJECT, DSL.name("KEY_project_uk_group_id_name"), new TableField[] { Project.PROJECT.GROUP_ID, Project.PROJECT.NAME }, true);
|
||||||
|
@ -86,6 +90,7 @@ public class Keys {
|
||||||
public static final UniqueKey<UserRecord> KEY_USER_UK_EMAIL = Internal.createUniqueKey(User.USER, DSL.name("KEY_user_uk_email"), new TableField[] { User.USER.EMAIL }, true);
|
public static final UniqueKey<UserRecord> KEY_USER_UK_EMAIL = Internal.createUniqueKey(User.USER, DSL.name("KEY_user_uk_email"), new TableField[] { User.USER.EMAIL }, true);
|
||||||
public static final UniqueKey<UserRecord> KEY_USER_UK_USERNAME = Internal.createUniqueKey(User.USER, DSL.name("KEY_user_uk_username"), new TableField[] { User.USER.USERNAME }, true);
|
public static final UniqueKey<UserRecord> KEY_USER_UK_USERNAME = Internal.createUniqueKey(User.USER, DSL.name("KEY_user_uk_username"), new TableField[] { User.USER.USERNAME }, true);
|
||||||
public static final UniqueKey<UserFavoriteProjectRecord> KEY_USER_FAVORITE_PROJECT_PRIMARY = Internal.createUniqueKey(UserFavoriteProject.USER_FAVORITE_PROJECT, DSL.name("KEY_user_favorite_project_PRIMARY"), new TableField[] { UserFavoriteProject.USER_FAVORITE_PROJECT.ID }, true);
|
public static final UniqueKey<UserFavoriteProjectRecord> KEY_USER_FAVORITE_PROJECT_PRIMARY = Internal.createUniqueKey(UserFavoriteProject.USER_FAVORITE_PROJECT, DSL.name("KEY_user_favorite_project_PRIMARY"), new TableField[] { UserFavoriteProject.USER_FAVORITE_PROJECT.ID }, true);
|
||||||
|
public static final UniqueKey<UserFavoriteProjectRecord> KEY_USER_FAVORITE_PROJECT_UK_USER_ID_PROJECT_ID = Internal.createUniqueKey(UserFavoriteProject.USER_FAVORITE_PROJECT, DSL.name("KEY_user_favorite_project_uk_user_id_project_id"), new TableField[] { UserFavoriteProject.USER_FAVORITE_PROJECT.USER_ID, UserFavoriteProject.USER_FAVORITE_PROJECT.PROJECT_ID }, true);
|
||||||
public static final UniqueKey<UserRoleRecord> KEY_USER_ROLE_PRIMARY = Internal.createUniqueKey(UserRole.USER_ROLE, DSL.name("KEY_user_role_PRIMARY"), new TableField[] { UserRole.USER_ROLE.ID }, true);
|
public static final UniqueKey<UserRoleRecord> KEY_USER_ROLE_PRIMARY = Internal.createUniqueKey(UserRole.USER_ROLE, DSL.name("KEY_user_role_PRIMARY"), new TableField[] { UserRole.USER_ROLE.ID }, true);
|
||||||
public static final UniqueKey<UserRoleRecord> KEY_USER_ROLE_UK_USER_ID_GROUP_ID_ROLE = Internal.createUniqueKey(UserRole.USER_ROLE, DSL.name("KEY_user_role_uk_user_id_group_id_role"), new TableField[] { UserRole.USER_ROLE.USER_ID, UserRole.USER_ROLE.GROUP_ID, UserRole.USER_ROLE.ROLE }, true);
|
public static final UniqueKey<UserRoleRecord> KEY_USER_ROLE_UK_USER_ID_GROUP_ID_ROLE = Internal.createUniqueKey(UserRole.USER_ROLE, DSL.name("KEY_user_role_uk_user_id_group_id_role"), new TableField[] { UserRole.USER_ROLE.USER_ID, UserRole.USER_ROLE.GROUP_ID, UserRole.USER_ROLE.ROLE }, true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@ import com.databasir.dao.tables.DatabaseDocumentHistory;
|
||||||
import com.databasir.dao.tables.DocumentRemark;
|
import com.databasir.dao.tables.DocumentRemark;
|
||||||
import com.databasir.dao.tables.Group;
|
import com.databasir.dao.tables.Group;
|
||||||
import com.databasir.dao.tables.Login;
|
import com.databasir.dao.tables.Login;
|
||||||
|
import com.databasir.dao.tables.OauthApp;
|
||||||
import com.databasir.dao.tables.OperationLog;
|
import com.databasir.dao.tables.OperationLog;
|
||||||
import com.databasir.dao.tables.Project;
|
import com.databasir.dao.tables.Project;
|
||||||
import com.databasir.dao.tables.ProjectSyncRule;
|
import com.databasir.dao.tables.ProjectSyncRule;
|
||||||
|
@ -66,6 +67,11 @@ public class Tables {
|
||||||
*/
|
*/
|
||||||
public static final Login LOGIN = Login.LOGIN;
|
public static final Login LOGIN = Login.LOGIN;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* oauth app info
|
||||||
|
*/
|
||||||
|
public static final OauthApp OAUTH_APP = OauthApp.OAUTH_APP;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The table <code>databasir.operation_log</code>.
|
* The table <code>databasir.operation_log</code>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -0,0 +1,199 @@
|
||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.databasir.dao.tables;
|
||||||
|
|
||||||
|
|
||||||
|
import com.databasir.dao.Databasir;
|
||||||
|
import com.databasir.dao.Keys;
|
||||||
|
import com.databasir.dao.tables.records.OauthAppRecord;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.ForeignKey;
|
||||||
|
import org.jooq.Identity;
|
||||||
|
import org.jooq.Name;
|
||||||
|
import org.jooq.Record;
|
||||||
|
import org.jooq.Row12;
|
||||||
|
import org.jooq.Schema;
|
||||||
|
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;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* oauth app info
|
||||||
|
*/
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class OauthApp extends TableImpl<OauthAppRecord> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The reference instance of <code>databasir.oauth_app</code>
|
||||||
|
*/
|
||||||
|
public static final OauthApp OAUTH_APP = new OauthApp();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class holding records for this type
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Class<OauthAppRecord> getRecordType() {
|
||||||
|
return OauthAppRecord.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>databasir.oauth_app.id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<OauthAppRecord, Integer> ID = createField(DSL.name("id"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>databasir.oauth_app.registration_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<OauthAppRecord, String> REGISTRATION_ID = createField(DSL.name("registration_id"), SQLDataType.VARCHAR(100).nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>databasir.oauth_app.app_name</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<OauthAppRecord, String> APP_NAME = createField(DSL.name("app_name"), SQLDataType.VARCHAR(128).nullable(false), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>databasir.oauth_app.app_icon</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<OauthAppRecord, String> APP_ICON = createField(DSL.name("app_icon"), SQLDataType.VARCHAR(256).nullable(false).defaultValue(DSL.inline("", SQLDataType.VARCHAR)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>databasir.oauth_app.app_type</code>. github, gitlab
|
||||||
|
*/
|
||||||
|
public final TableField<OauthAppRecord, String> APP_TYPE = createField(DSL.name("app_type"), SQLDataType.VARCHAR(64).nullable(false), this, "github, gitlab");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>databasir.oauth_app.client_id</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<OauthAppRecord, String> CLIENT_ID = createField(DSL.name("client_id"), SQLDataType.VARCHAR(256), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>databasir.oauth_app.client_secret</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<OauthAppRecord, String> CLIENT_SECRET = createField(DSL.name("client_secret"), SQLDataType.VARCHAR(256), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>databasir.oauth_app.auth_url</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<OauthAppRecord, String> AUTH_URL = createField(DSL.name("auth_url"), SQLDataType.VARCHAR(256), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>databasir.oauth_app.resource_url</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<OauthAppRecord, String> RESOURCE_URL = createField(DSL.name("resource_url"), SQLDataType.VARCHAR(256), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>databasir.oauth_app.scope</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<OauthAppRecord, String> SCOPE = createField(DSL.name("scope"), SQLDataType.VARCHAR(256), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>databasir.oauth_app.update_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<OauthAppRecord, LocalDateTime> UPDATE_AT = createField(DSL.name("update_at"), SQLDataType.LOCALDATETIME(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, "");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The column <code>databasir.oauth_app.create_at</code>.
|
||||||
|
*/
|
||||||
|
public final TableField<OauthAppRecord, LocalDateTime> CREATE_AT = createField(DSL.name("create_at"), SQLDataType.LOCALDATETIME(0).nullable(false).defaultValue(DSL.field("CURRENT_TIMESTAMP", SQLDataType.LOCALDATETIME)), this, "");
|
||||||
|
|
||||||
|
private OauthApp(Name alias, Table<OauthAppRecord> aliased) {
|
||||||
|
this(alias, aliased, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
private OauthApp(Name alias, Table<OauthAppRecord> aliased, Field<?>[] parameters) {
|
||||||
|
super(alias, null, aliased, parameters, DSL.comment("oauth app info"), TableOptions.table());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>databasir.oauth_app</code> table reference
|
||||||
|
*/
|
||||||
|
public OauthApp(String alias) {
|
||||||
|
this(DSL.name(alias), OAUTH_APP);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an aliased <code>databasir.oauth_app</code> table reference
|
||||||
|
*/
|
||||||
|
public OauthApp(Name alias) {
|
||||||
|
this(alias, OAUTH_APP);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a <code>databasir.oauth_app</code> table reference
|
||||||
|
*/
|
||||||
|
public OauthApp() {
|
||||||
|
this(DSL.name("oauth_app"), null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public <O extends Record> OauthApp(Table<O> child, ForeignKey<O, OauthAppRecord> key) {
|
||||||
|
super(child, key, OAUTH_APP);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Schema getSchema() {
|
||||||
|
return aliased() ? null : Databasir.DATABASIR;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Identity<OauthAppRecord, Integer> getIdentity() {
|
||||||
|
return (Identity<OauthAppRecord, Integer>) super.getIdentity();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public UniqueKey<OauthAppRecord> getPrimaryKey() {
|
||||||
|
return Keys.KEY_OAUTH_APP_PRIMARY;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<OauthAppRecord>> getUniqueKeys() {
|
||||||
|
return Arrays.asList(Keys.KEY_OAUTH_APP_UK_REGISTRATION_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthApp as(String alias) {
|
||||||
|
return new OauthApp(DSL.name(alias), this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthApp as(Name alias) {
|
||||||
|
return new OauthApp(alias, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public OauthApp rename(String name) {
|
||||||
|
return new OauthApp(DSL.name(name), null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rename this table
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public OauthApp rename(Name name) {
|
||||||
|
return new OauthApp(name, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Row12 type methods
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Row12<Integer, String, String, String, String, String, String, String, String, String, LocalDateTime, LocalDateTime> fieldsRow() {
|
||||||
|
return (Row12) super.fieldsRow();
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,7 +5,6 @@ package com.databasir.dao.tables;
|
||||||
|
|
||||||
|
|
||||||
import com.databasir.dao.Databasir;
|
import com.databasir.dao.Databasir;
|
||||||
import com.databasir.dao.Indexes;
|
|
||||||
import com.databasir.dao.Keys;
|
import com.databasir.dao.Keys;
|
||||||
import com.databasir.dao.tables.records.UserFavoriteProjectRecord;
|
import com.databasir.dao.tables.records.UserFavoriteProjectRecord;
|
||||||
|
|
||||||
|
@ -16,7 +15,6 @@ import java.util.List;
|
||||||
import org.jooq.Field;
|
import org.jooq.Field;
|
||||||
import org.jooq.ForeignKey;
|
import org.jooq.ForeignKey;
|
||||||
import org.jooq.Identity;
|
import org.jooq.Identity;
|
||||||
import org.jooq.Index;
|
|
||||||
import org.jooq.Name;
|
import org.jooq.Name;
|
||||||
import org.jooq.Record;
|
import org.jooq.Record;
|
||||||
import org.jooq.Row4;
|
import org.jooq.Row4;
|
||||||
|
@ -111,11 +109,6 @@ public class UserFavoriteProject extends TableImpl<UserFavoriteProjectRecord> {
|
||||||
return aliased() ? null : Databasir.DATABASIR;
|
return aliased() ? null : Databasir.DATABASIR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<Index> getIndexes() {
|
|
||||||
return Arrays.asList(Indexes.USER_FAVORITE_PROJECT_IDX_USER_ID);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Identity<UserFavoriteProjectRecord, Integer> getIdentity() {
|
public Identity<UserFavoriteProjectRecord, Integer> getIdentity() {
|
||||||
return (Identity<UserFavoriteProjectRecord, Integer>) super.getIdentity();
|
return (Identity<UserFavoriteProjectRecord, Integer>) super.getIdentity();
|
||||||
|
@ -126,6 +119,11 @@ public class UserFavoriteProject extends TableImpl<UserFavoriteProjectRecord> {
|
||||||
return Keys.KEY_USER_FAVORITE_PROJECT_PRIMARY;
|
return Keys.KEY_USER_FAVORITE_PROJECT_PRIMARY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<UniqueKey<UserFavoriteProjectRecord>> getUniqueKeys() {
|
||||||
|
return Arrays.asList(Keys.KEY_USER_FAVORITE_PROJECT_UK_USER_ID_PROJECT_ID);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UserFavoriteProject as(String alias) {
|
public UserFavoriteProject as(String alias) {
|
||||||
return new UserFavoriteProject(DSL.name(alias), this);
|
return new UserFavoriteProject(DSL.name(alias), this);
|
||||||
|
|
|
@ -0,0 +1,265 @@
|
||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.databasir.dao.tables.pojos;
|
||||||
|
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* oauth app info
|
||||||
|
*/
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class OauthAppPojo implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private Integer id;
|
||||||
|
private String registrationId;
|
||||||
|
private String appName;
|
||||||
|
private String appIcon;
|
||||||
|
private String appType;
|
||||||
|
private String clientId;
|
||||||
|
private String clientSecret;
|
||||||
|
private String authUrl;
|
||||||
|
private String resourceUrl;
|
||||||
|
private String scope;
|
||||||
|
private LocalDateTime updateAt;
|
||||||
|
private LocalDateTime createAt;
|
||||||
|
|
||||||
|
public OauthAppPojo() {}
|
||||||
|
|
||||||
|
public OauthAppPojo(OauthAppPojo value) {
|
||||||
|
this.id = value.id;
|
||||||
|
this.registrationId = value.registrationId;
|
||||||
|
this.appName = value.appName;
|
||||||
|
this.appIcon = value.appIcon;
|
||||||
|
this.appType = value.appType;
|
||||||
|
this.clientId = value.clientId;
|
||||||
|
this.clientSecret = value.clientSecret;
|
||||||
|
this.authUrl = value.authUrl;
|
||||||
|
this.resourceUrl = value.resourceUrl;
|
||||||
|
this.scope = value.scope;
|
||||||
|
this.updateAt = value.updateAt;
|
||||||
|
this.createAt = value.createAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OauthAppPojo(
|
||||||
|
Integer id,
|
||||||
|
String registrationId,
|
||||||
|
String appName,
|
||||||
|
String appIcon,
|
||||||
|
String appType,
|
||||||
|
String clientId,
|
||||||
|
String clientSecret,
|
||||||
|
String authUrl,
|
||||||
|
String resourceUrl,
|
||||||
|
String scope,
|
||||||
|
LocalDateTime updateAt,
|
||||||
|
LocalDateTime createAt
|
||||||
|
) {
|
||||||
|
this.id = id;
|
||||||
|
this.registrationId = registrationId;
|
||||||
|
this.appName = appName;
|
||||||
|
this.appIcon = appIcon;
|
||||||
|
this.appType = appType;
|
||||||
|
this.clientId = clientId;
|
||||||
|
this.clientSecret = clientSecret;
|
||||||
|
this.authUrl = authUrl;
|
||||||
|
this.resourceUrl = resourceUrl;
|
||||||
|
this.scope = scope;
|
||||||
|
this.updateAt = updateAt;
|
||||||
|
this.createAt = createAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.id</code>.
|
||||||
|
*/
|
||||||
|
public Integer getId() {
|
||||||
|
return this.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.id</code>.
|
||||||
|
*/
|
||||||
|
public void setId(Integer id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.registration_id</code>.
|
||||||
|
*/
|
||||||
|
public String getRegistrationId() {
|
||||||
|
return this.registrationId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.registration_id</code>.
|
||||||
|
*/
|
||||||
|
public void setRegistrationId(String registrationId) {
|
||||||
|
this.registrationId = registrationId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.app_name</code>.
|
||||||
|
*/
|
||||||
|
public String getAppName() {
|
||||||
|
return this.appName;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.app_name</code>.
|
||||||
|
*/
|
||||||
|
public void setAppName(String appName) {
|
||||||
|
this.appName = appName;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.app_icon</code>.
|
||||||
|
*/
|
||||||
|
public String getAppIcon() {
|
||||||
|
return this.appIcon;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.app_icon</code>.
|
||||||
|
*/
|
||||||
|
public void setAppIcon(String appIcon) {
|
||||||
|
this.appIcon = appIcon;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.app_type</code>. github, gitlab
|
||||||
|
*/
|
||||||
|
public String getAppType() {
|
||||||
|
return this.appType;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.app_type</code>. github, gitlab
|
||||||
|
*/
|
||||||
|
public void setAppType(String appType) {
|
||||||
|
this.appType = appType;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.client_id</code>.
|
||||||
|
*/
|
||||||
|
public String getClientId() {
|
||||||
|
return this.clientId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.client_id</code>.
|
||||||
|
*/
|
||||||
|
public void setClientId(String clientId) {
|
||||||
|
this.clientId = clientId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.client_secret</code>.
|
||||||
|
*/
|
||||||
|
public String getClientSecret() {
|
||||||
|
return this.clientSecret;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.client_secret</code>.
|
||||||
|
*/
|
||||||
|
public void setClientSecret(String clientSecret) {
|
||||||
|
this.clientSecret = clientSecret;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.auth_url</code>.
|
||||||
|
*/
|
||||||
|
public String getAuthUrl() {
|
||||||
|
return this.authUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.auth_url</code>.
|
||||||
|
*/
|
||||||
|
public void setAuthUrl(String authUrl) {
|
||||||
|
this.authUrl = authUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.resource_url</code>.
|
||||||
|
*/
|
||||||
|
public String getResourceUrl() {
|
||||||
|
return this.resourceUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.resource_url</code>.
|
||||||
|
*/
|
||||||
|
public void setResourceUrl(String resourceUrl) {
|
||||||
|
this.resourceUrl = resourceUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.scope</code>.
|
||||||
|
*/
|
||||||
|
public String getScope() {
|
||||||
|
return this.scope;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.scope</code>.
|
||||||
|
*/
|
||||||
|
public void setScope(String scope) {
|
||||||
|
this.scope = scope;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.update_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getUpdateAt() {
|
||||||
|
return this.updateAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.update_at</code>.
|
||||||
|
*/
|
||||||
|
public void setUpdateAt(LocalDateTime updateAt) {
|
||||||
|
this.updateAt = updateAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.create_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getCreateAt() {
|
||||||
|
return this.createAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.create_at</code>.
|
||||||
|
*/
|
||||||
|
public void setCreateAt(LocalDateTime createAt) {
|
||||||
|
this.createAt = createAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder("OauthAppPojo (");
|
||||||
|
|
||||||
|
sb.append(id);
|
||||||
|
sb.append(", ").append(registrationId);
|
||||||
|
sb.append(", ").append(appName);
|
||||||
|
sb.append(", ").append(appIcon);
|
||||||
|
sb.append(", ").append(appType);
|
||||||
|
sb.append(", ").append(clientId);
|
||||||
|
sb.append(", ").append(clientSecret);
|
||||||
|
sb.append(", ").append(authUrl);
|
||||||
|
sb.append(", ").append(resourceUrl);
|
||||||
|
sb.append(", ").append(scope);
|
||||||
|
sb.append(", ").append(updateAt);
|
||||||
|
sb.append(", ").append(createAt);
|
||||||
|
|
||||||
|
sb.append(")");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,539 @@
|
||||||
|
/*
|
||||||
|
* This file is generated by jOOQ.
|
||||||
|
*/
|
||||||
|
package com.databasir.dao.tables.records;
|
||||||
|
|
||||||
|
|
||||||
|
import com.databasir.dao.tables.OauthApp;
|
||||||
|
import com.databasir.dao.tables.pojos.OauthAppPojo;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import org.jooq.Field;
|
||||||
|
import org.jooq.Record1;
|
||||||
|
import org.jooq.Record12;
|
||||||
|
import org.jooq.Row12;
|
||||||
|
import org.jooq.impl.UpdatableRecordImpl;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* oauth app info
|
||||||
|
*/
|
||||||
|
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||||
|
public class OauthAppRecord extends UpdatableRecordImpl<OauthAppRecord> implements Record12<Integer, String, String, String, String, String, String, String, String, String, LocalDateTime, LocalDateTime> {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.id</code>.
|
||||||
|
*/
|
||||||
|
public void setId(Integer value) {
|
||||||
|
set(0, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.id</code>.
|
||||||
|
*/
|
||||||
|
public Integer getId() {
|
||||||
|
return (Integer) get(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.registration_id</code>.
|
||||||
|
*/
|
||||||
|
public void setRegistrationId(String value) {
|
||||||
|
set(1, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.registration_id</code>.
|
||||||
|
*/
|
||||||
|
public String getRegistrationId() {
|
||||||
|
return (String) get(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.app_name</code>.
|
||||||
|
*/
|
||||||
|
public void setAppName(String value) {
|
||||||
|
set(2, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.app_name</code>.
|
||||||
|
*/
|
||||||
|
public String getAppName() {
|
||||||
|
return (String) get(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.app_icon</code>.
|
||||||
|
*/
|
||||||
|
public void setAppIcon(String value) {
|
||||||
|
set(3, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.app_icon</code>.
|
||||||
|
*/
|
||||||
|
public String getAppIcon() {
|
||||||
|
return (String) get(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.app_type</code>. github, gitlab
|
||||||
|
*/
|
||||||
|
public void setAppType(String value) {
|
||||||
|
set(4, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.app_type</code>. github, gitlab
|
||||||
|
*/
|
||||||
|
public String getAppType() {
|
||||||
|
return (String) get(4);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.client_id</code>.
|
||||||
|
*/
|
||||||
|
public void setClientId(String value) {
|
||||||
|
set(5, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.client_id</code>.
|
||||||
|
*/
|
||||||
|
public String getClientId() {
|
||||||
|
return (String) get(5);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.client_secret</code>.
|
||||||
|
*/
|
||||||
|
public void setClientSecret(String value) {
|
||||||
|
set(6, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.client_secret</code>.
|
||||||
|
*/
|
||||||
|
public String getClientSecret() {
|
||||||
|
return (String) get(6);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.auth_url</code>.
|
||||||
|
*/
|
||||||
|
public void setAuthUrl(String value) {
|
||||||
|
set(7, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.auth_url</code>.
|
||||||
|
*/
|
||||||
|
public String getAuthUrl() {
|
||||||
|
return (String) get(7);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.resource_url</code>.
|
||||||
|
*/
|
||||||
|
public void setResourceUrl(String value) {
|
||||||
|
set(8, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.resource_url</code>.
|
||||||
|
*/
|
||||||
|
public String getResourceUrl() {
|
||||||
|
return (String) get(8);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.scope</code>.
|
||||||
|
*/
|
||||||
|
public void setScope(String value) {
|
||||||
|
set(9, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.scope</code>.
|
||||||
|
*/
|
||||||
|
public String getScope() {
|
||||||
|
return (String) get(9);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.update_at</code>.
|
||||||
|
*/
|
||||||
|
public void setUpdateAt(LocalDateTime value) {
|
||||||
|
set(10, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.update_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getUpdateAt() {
|
||||||
|
return (LocalDateTime) get(10);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setter for <code>databasir.oauth_app.create_at</code>.
|
||||||
|
*/
|
||||||
|
public void setCreateAt(LocalDateTime value) {
|
||||||
|
set(11, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Getter for <code>databasir.oauth_app.create_at</code>.
|
||||||
|
*/
|
||||||
|
public LocalDateTime getCreateAt() {
|
||||||
|
return (LocalDateTime) get(11);
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Primary key information
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Record1<Integer> key() {
|
||||||
|
return (Record1) super.key();
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Record12 type implementation
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Row12<Integer, String, String, String, String, String, String, String, String, String, LocalDateTime, LocalDateTime> fieldsRow() {
|
||||||
|
return (Row12) super.fieldsRow();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Row12<Integer, String, String, String, String, String, String, String, String, String, LocalDateTime, LocalDateTime> valuesRow() {
|
||||||
|
return (Row12) super.valuesRow();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<Integer> field1() {
|
||||||
|
return OauthApp.OAUTH_APP.ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<String> field2() {
|
||||||
|
return OauthApp.OAUTH_APP.REGISTRATION_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<String> field3() {
|
||||||
|
return OauthApp.OAUTH_APP.APP_NAME;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<String> field4() {
|
||||||
|
return OauthApp.OAUTH_APP.APP_ICON;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<String> field5() {
|
||||||
|
return OauthApp.OAUTH_APP.APP_TYPE;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<String> field6() {
|
||||||
|
return OauthApp.OAUTH_APP.CLIENT_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<String> field7() {
|
||||||
|
return OauthApp.OAUTH_APP.CLIENT_SECRET;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<String> field8() {
|
||||||
|
return OauthApp.OAUTH_APP.AUTH_URL;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<String> field9() {
|
||||||
|
return OauthApp.OAUTH_APP.RESOURCE_URL;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<String> field10() {
|
||||||
|
return OauthApp.OAUTH_APP.SCOPE;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<LocalDateTime> field11() {
|
||||||
|
return OauthApp.OAUTH_APP.UPDATE_AT;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Field<LocalDateTime> field12() {
|
||||||
|
return OauthApp.OAUTH_APP.CREATE_AT;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Integer component1() {
|
||||||
|
return getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String component2() {
|
||||||
|
return getRegistrationId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String component3() {
|
||||||
|
return getAppName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String component4() {
|
||||||
|
return getAppIcon();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String component5() {
|
||||||
|
return getAppType();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String component6() {
|
||||||
|
return getClientId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String component7() {
|
||||||
|
return getClientSecret();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String component8() {
|
||||||
|
return getAuthUrl();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String component9() {
|
||||||
|
return getResourceUrl();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String component10() {
|
||||||
|
return getScope();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public LocalDateTime component11() {
|
||||||
|
return getUpdateAt();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public LocalDateTime component12() {
|
||||||
|
return getCreateAt();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Integer value1() {
|
||||||
|
return getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String value2() {
|
||||||
|
return getRegistrationId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String value3() {
|
||||||
|
return getAppName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String value4() {
|
||||||
|
return getAppIcon();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String value5() {
|
||||||
|
return getAppType();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String value6() {
|
||||||
|
return getClientId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String value7() {
|
||||||
|
return getClientSecret();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String value8() {
|
||||||
|
return getAuthUrl();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String value9() {
|
||||||
|
return getResourceUrl();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String value10() {
|
||||||
|
return getScope();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public LocalDateTime value11() {
|
||||||
|
return getUpdateAt();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public LocalDateTime value12() {
|
||||||
|
return getCreateAt();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord value1(Integer value) {
|
||||||
|
setId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord value2(String value) {
|
||||||
|
setRegistrationId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord value3(String value) {
|
||||||
|
setAppName(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord value4(String value) {
|
||||||
|
setAppIcon(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord value5(String value) {
|
||||||
|
setAppType(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord value6(String value) {
|
||||||
|
setClientId(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord value7(String value) {
|
||||||
|
setClientSecret(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord value8(String value) {
|
||||||
|
setAuthUrl(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord value9(String value) {
|
||||||
|
setResourceUrl(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord value10(String value) {
|
||||||
|
setScope(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord value11(LocalDateTime value) {
|
||||||
|
setUpdateAt(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord value12(LocalDateTime value) {
|
||||||
|
setCreateAt(value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OauthAppRecord values(Integer value1, String value2, String value3, String value4, String value5, String value6, String value7, String value8, String value9, String value10, LocalDateTime value11, LocalDateTime value12) {
|
||||||
|
value1(value1);
|
||||||
|
value2(value2);
|
||||||
|
value3(value3);
|
||||||
|
value4(value4);
|
||||||
|
value5(value5);
|
||||||
|
value6(value6);
|
||||||
|
value7(value7);
|
||||||
|
value8(value8);
|
||||||
|
value9(value9);
|
||||||
|
value10(value10);
|
||||||
|
value11(value11);
|
||||||
|
value12(value12);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// Constructors
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached OauthAppRecord
|
||||||
|
*/
|
||||||
|
public OauthAppRecord() {
|
||||||
|
super(OauthApp.OAUTH_APP);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached, initialised OauthAppRecord
|
||||||
|
*/
|
||||||
|
public OauthAppRecord(Integer id, String registrationId, String appName, String appIcon, String appType, String clientId, String clientSecret, String authUrl, String resourceUrl, String scope, LocalDateTime updateAt, LocalDateTime createAt) {
|
||||||
|
super(OauthApp.OAUTH_APP);
|
||||||
|
|
||||||
|
setId(id);
|
||||||
|
setRegistrationId(registrationId);
|
||||||
|
setAppName(appName);
|
||||||
|
setAppIcon(appIcon);
|
||||||
|
setAppType(appType);
|
||||||
|
setClientId(clientId);
|
||||||
|
setClientSecret(clientSecret);
|
||||||
|
setAuthUrl(authUrl);
|
||||||
|
setResourceUrl(resourceUrl);
|
||||||
|
setScope(scope);
|
||||||
|
setUpdateAt(updateAt);
|
||||||
|
setCreateAt(createAt);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a detached, initialised OauthAppRecord
|
||||||
|
*/
|
||||||
|
public OauthAppRecord(OauthAppPojo value) {
|
||||||
|
super(OauthApp.OAUTH_APP);
|
||||||
|
|
||||||
|
if (value != null) {
|
||||||
|
setId(value.getId());
|
||||||
|
setRegistrationId(value.getRegistrationId());
|
||||||
|
setAppName(value.getAppName());
|
||||||
|
setAppIcon(value.getAppIcon());
|
||||||
|
setAppType(value.getAppType());
|
||||||
|
setClientId(value.getClientId());
|
||||||
|
setClientSecret(value.getClientSecret());
|
||||||
|
setAuthUrl(value.getAuthUrl());
|
||||||
|
setResourceUrl(value.getResourceUrl());
|
||||||
|
setScope(value.getScope());
|
||||||
|
setUpdateAt(value.getUpdateAt());
|
||||||
|
setCreateAt(value.getCreateAt());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.databasir.dao.impl;
|
||||||
|
|
||||||
|
import com.databasir.dao.tables.OauthApp;
|
||||||
|
import lombok.Getter;
|
||||||
|
import org.jooq.DSLContext;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import static com.databasir.dao.Tables.OAUTH_APP;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public class OAuthAppDao extends BaseDao<OauthApp> {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
@Getter
|
||||||
|
private DSLContext dslContext;
|
||||||
|
|
||||||
|
public OAuthAppDao() {
|
||||||
|
super(OAUTH_APP, OauthApp.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue