Skip to content

Commit

Permalink
feat: EXPOSED-77 Support entity class for table with composite primar…
Browse files Browse the repository at this point in the history
…y key

Fix detekt issues.
Change visibility modifier of isEntityIdentifier function
  • Loading branch information
bog-walk committed Jul 5, 2024
1 parent 3497e79 commit fb788a8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion exposed-core/api/exposed-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ public abstract class org/jetbrains/exposed/sql/ColumnType : org/jetbrains/expos
public final class org/jetbrains/exposed/sql/ColumnTypeKt {
public static final fun getAutoIncColumnType (Lorg/jetbrains/exposed/sql/Column;)Lorg/jetbrains/exposed/sql/AutoIncColumnType;
public static final fun isAutoInc (Lorg/jetbrains/exposed/sql/IColumnType;)Z
public static final fun isEntityIdentifier (Lorg/jetbrains/exposed/sql/IColumnType;)Z
public static final fun resolveColumnType (Lkotlin/reflect/KClass;Lorg/jetbrains/exposed/sql/ColumnType;)Lorg/jetbrains/exposed/sql/ColumnType;
public static synthetic fun resolveColumnType$default (Lkotlin/reflect/KClass;Lorg/jetbrains/exposed/sql/ColumnType;ILjava/lang/Object;)Lorg/jetbrains/exposed/sql/ColumnType;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ internal fun IColumnType<*>.rawSqlType(): IColumnType<*> = when {
else -> this
}

fun IColumnType<*>.isEntityIdentifier(): Boolean {
internal fun IColumnType<*>.isEntityIdentifier(): Boolean {
return this is EntityIDColumnType<*> && (idColumn.table as IdTable<*>).id == idColumn
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package org.jetbrains.exposed.dao

import org.jetbrains.exposed.dao.exceptions.EntityNotFoundException
import org.jetbrains.exposed.dao.id.CompositeID
import org.jetbrains.exposed.dao.id.CompositeIdTable
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.IdTable
import org.jetbrains.exposed.sql.*
Expand Down

0 comments on commit fb788a8

Please sign in to comment.