diff --git a/src/main/kotlin/io/cloudflight/cleancode/archunit/rules/jpa/KotlinEntityNullableCondition.kt b/src/main/kotlin/io/cloudflight/cleancode/archunit/rules/jpa/KotlinEntityNullableCondition.kt index 7023b89..2060872 100644 --- a/src/main/kotlin/io/cloudflight/cleancode/archunit/rules/jpa/KotlinEntityNullableCondition.kt +++ b/src/main/kotlin/io/cloudflight/cleancode/archunit/rules/jpa/KotlinEntityNullableCondition.kt @@ -63,6 +63,7 @@ internal class KotlinEntityNullableCondition : findAnnotation(memberProperty) { false }?.let { nullable = it } findAnnotation(memberProperty) { nullableIfNotTypeLong(memberProperty) }?.let { nullable = it } findAnnotation(memberProperty) { manyToOne -> manyToOne.optional }?.let { nullable = it } + findAnnotation(memberProperty) { oneToOne -> oneToOne.optional }?.let { nullable = it } return nullable }