Skip to content

Commit

Permalink
Merge pull request #759 from Kotlin/fix-condition
Browse files Browse the repository at this point in the history
Revert filter condition, fixes broken logic
  • Loading branch information
koperagen authored Jun 27, 2024
2 parents e840c22 + 8b4d2b0 commit bd90c5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,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>() }
val structuralProperties = markerClass.memberProperties.filter { !it.hasAnnotation<ScopeProperty>() }
return structuralProperties.sortedBy { order[it.name] ?: Int.MAX_VALUE }.mapIndexed { _, it ->
val fieldName = ValidFieldName.of(it.name)
val columnName = it.findAnnotation<ColumnName>()?.name ?: fieldName.unquoted
Expand Down

0 comments on commit bd90c5e

Please sign in to comment.