Skip to content

Commit

Permalink
nullable in Kotlin vs JPA for OneToOne association (#26) (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
proggler23 authored Jun 11, 2024
1 parent 236ea33 commit ea7291c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ internal class KotlinEntityNullableCondition :
findAnnotation<Id>(memberProperty) { false }?.let { nullable = it }
findAnnotation<GeneratedValue>(memberProperty) { nullableIfNotTypeLong(memberProperty) }?.let { nullable = it }
findAnnotation<ManyToOne>(memberProperty) { manyToOne -> manyToOne.optional }?.let { nullable = it }
findAnnotation<OneToOne>(memberProperty) { oneToOne -> oneToOne.optional }?.let { nullable = it }
return nullable
}

Expand Down

0 comments on commit ea7291c

Please sign in to comment.