Skip to content

Commit

Permalink
Merge pull request #791 from GeorgCantor/patch-1
Browse files Browse the repository at this point in the history
Update MarkersExtractor.kt
  • Loading branch information
Jolanrensen authored Jul 23, 2024
2 parents 55e2473 + 6855140 commit f6a572b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ internal object MarkersExtractor {
private fun getFields(markerClass: KClass<*>, nullableProperties: Boolean): List<GeneratedField> {
val order = getPropertyOrderFromPrimaryConstructor(markerClass) ?: emptyMap()
val structuralProperties = markerClass.memberProperties.filter { !it.hasAnnotation<ScopeProperty>() }
return structuralProperties.sortedBy { order[it.name] ?: Int.MAX_VALUE }.mapIndexed { _, it ->
return structuralProperties.sortedBy { order[it.name] ?: Int.MAX_VALUE }.map {
val fieldName = ValidFieldName.of(it.name)
val columnName = it.findAnnotation<ColumnName>()?.name ?: fieldName.unquoted
val type = it.returnType
Expand Down

0 comments on commit f6a572b

Please sign in to comment.