Browse Source

Improve Kotlin + bean validation documentation

Issue: SPR-16701
pull/1798/head
sdeleuze 7 years ago
parent
commit
1be585562f
  1. 8
      src/docs/asciidoc/languages/kotlin.adoc

8
src/docs/asciidoc/languages/kotlin.adoc

@ -166,11 +166,11 @@ type `Bar` may or may not exist. The same behavior applies to autowired construc @@ -166,11 +166,11 @@ type `Bar` may or may not exist. The same behavior applies to autowired construc
[NOTE]
====
If you are using bean validation on classes with
https://kotlinlang.org/docs/reference/classes.html#constructors[primary constructor properties],
make sure to use
If you are using bean validation on classes with properties or a primary constructor
parameters, you may need to leverage
https://kotlinlang.org/docs/reference/annotations.html#annotation-use-site-targets[annotation use-site targets]
as described in https://stackoverflow.com/a/35853200/1092077[this Stack Overflow response].
like `@field:NotNull` or `@get:Size(min=5, max=15)` as described in
https://stackoverflow.com/a/35853200/1092077[this Stack Overflow response].
====

Loading…
Cancel
Save