You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/java/codegen-kotlin/src/main/kotlin/com/metaobjects/generator/kotlin/KotlinExposedTableGenerator.kt
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -56,10 +56,10 @@ open class KotlinExposedTableGenerator : MultiFileDirectGeneratorBase<MetaObject
56
56
val fkMap = buildGlobalFkMap(loader, refDecorationMap)
57
57
58
58
// Packages that emit at least one table carrying a
59
-
//`@dbColumnType=timestamp_with_tz` column. Each such package gets ONE
59
+
//instant (default, non-`@localTime`) column. Each such package gets ONE
60
60
// shared `MetaInstantWithTimeZoneColumnType.kt` support file (emitted in
61
61
// pass 3 below) instead of inlining the helper into every table file —
62
-
// multiple timestamp_with_tz tables in one package would otherwise
62
+
// multiple instant-timestamp tables in one package would otherwise
63
63
// redeclare the top-level support class/extension and fail to compile.
64
64
val packagesNeedingInstantTzHelper = sortedSetOf<String>()
65
65
@@ -103,7 +103,7 @@ open class KotlinExposedTableGenerator : MultiFileDirectGeneratorBase<MetaObject
103
103
}
104
104
105
105
// Pass 3: emit ONE shared `MetaInstantWithTimeZoneColumnType.kt` per package
106
-
// that has at least one `@dbColumnType=timestamp_with_tz` column. The helper
106
+
// that has at least one instant (default, non-`@localTime`) column. The helper
107
107
// (custom `ColumnType<Instant>` + `Table.instantWithTimeZone(...)` extension) is
108
108
// `internal`, so every `*Table.kt` in the same package + module shares the single
109
109
// declaration with no redeclaration / private-access clash.
@@ -114,7 +114,7 @@ open class KotlinExposedTableGenerator : MultiFileDirectGeneratorBase<MetaObject
114
114
115
115
/**
116
116
* Emit the per-package `MetaInstantWithTimeZoneColumnType.kt` support file for
117
-
* `@dbColumnType=timestamp_with_tz` columns: an `internal` custom `ColumnType<Instant>`
117
+
* instant (default, non-`@localTime`) columns: an `internal` custom `ColumnType<Instant>`
118
118
* (DDL `TIMESTAMP WITH TIME ZONE`) plus the `internal Table.instantWithTimeZone(name)`
119
119
* column-builder extension that the generated table files call. `internal` keeps it
120
120
* package+module-private (no leakage) while letting EVERY `*Table.kt` in the package use
@@ -150,7 +150,7 @@ open class KotlinExposedTableGenerator : MultiFileDirectGeneratorBase<MetaObject
150
150
151
151
/**
152
152
* Emit one `*Table.kt` for [entity]. Returns `true` when the table carries at
153
-
* least one `@dbColumnType=timestamp_with_tz` column — the caller uses that to
153
+
* least one instant (default, non-`@localTime`) column — the caller uses that to
154
154
* record the package as needing the shared `MetaInstantWithTimeZoneColumnType.kt`
155
155
* support file (emitted once per package, not per table).
156
156
*/
@@ -226,7 +226,7 @@ open class KotlinExposedTableGenerator : MultiFileDirectGeneratorBase<MetaObject
0 commit comments