Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
fix reference column name
Browse files Browse the repository at this point in the history
  • Loading branch information
lookup-cat committed Sep 20, 2022
1 parent d67f0c3 commit 2657140
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ public object ColumnInitializerGenerator {
val referenceColumn = column.referencesColumn!!
dependencyFiles.add(referenceColumn.propertyDeclaration.containingFile!!)

// TODO: why skip naming strategy for reference columns?
val columnName = column.columnName.ifEmpty { column.entityPropertyName.simpleName }
return doGenerate(
columnName,
column.columnName,
config,
referenceColumn.entityPropertyName,
referenceColumn.sqlType,
Expand Down

0 comments on commit 2657140

Please sign in to comment.