Skip to content

Commit

Permalink
Indexing is broken in case of turned on Foreign keys #184
Browse files Browse the repository at this point in the history
  • Loading branch information
lehvolk committed Oct 10, 2023
1 parent dc5975e commit 78727c5
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Copyright 2022 UnitTestBot contributors (utbot.org)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* This file is generated by jOOQ.
*/
package org.jacodb.impl.storage.jooq.tables.records


import org.jacodb.impl.storage.jooq.tables.Applicationmetadata
import org.jooq.Field
import org.jooq.Record1
import org.jooq.Row1
import org.jooq.impl.TableRecordImpl


/**
* This class is generated by jOOQ.
*/
@Suppress("UNCHECKED_CAST")
open class ApplicationmetadataRecord() : TableRecordImpl<ApplicationmetadataRecord>(Applicationmetadata.APPLICATIONMETADATA), Record1<String?> {

var version: String?
set(value) = set(0, value)
get() = get(0) as String?

// -------------------------------------------------------------------------
// Record1 type implementation
// -------------------------------------------------------------------------

override fun fieldsRow(): Row1<String?> = super.fieldsRow() as Row1<String?>
override fun valuesRow(): Row1<String?> = super.valuesRow() as Row1<String?>
override fun field1(): Field<String?> = Applicationmetadata.APPLICATIONMETADATA.VERSION
override fun component1(): String? = version
override fun value1(): String? = version

override fun value1(value: String?): ApplicationmetadataRecord {
this.version = value
return this
}

override fun values(value1: String?): ApplicationmetadataRecord {
this.value1(value1)
return this
}

/**
* Create a detached, initialised ApplicationmetadataRecord
*/
constructor(version: String? = null): this() {
this.version = version
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Copyright 2022 UnitTestBot contributors (utbot.org)
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* This file is generated by jOOQ.
*/
package org.jacodb.impl.storage.jooq.tables.records


import org.jacodb.impl.storage.jooq.tables.Refactorings
import org.jooq.Field
import org.jooq.Record1
import org.jooq.Row1
import org.jooq.impl.TableRecordImpl


/**
* This class is generated by jOOQ.
*/
@Suppress("UNCHECKED_CAST")
open class RefactoringsRecord() : TableRecordImpl<RefactoringsRecord>(Refactorings.REFACTORINGS), Record1<String?> {

var name: String?
set(value) = set(0, value)
get() = get(0) as String?

// -------------------------------------------------------------------------
// Record1 type implementation
// -------------------------------------------------------------------------

override fun fieldsRow(): Row1<String?> = super.fieldsRow() as Row1<String?>
override fun valuesRow(): Row1<String?> = super.valuesRow() as Row1<String?>
override fun field1(): Field<String?> = Refactorings.REFACTORINGS.NAME
override fun component1(): String? = name
override fun value1(): String? = name

override fun value1(value: String?): RefactoringsRecord {
this.name = value
return this
}

override fun values(value1: String?): RefactoringsRecord {
this.value1(value1)
return this
}

/**
* Create a detached, initialised RefactoringsRecord
*/
constructor(name: String? = null): this() {
this.name = name
}
}

0 comments on commit 78727c5

Please sign in to comment.