Improve Kotlin + bean validation documentation

Issue: SPR-16701
master
sdeleuze 7 years ago
parent c82bf0b004
commit e4298e8366
  1. 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
[NOTE] [NOTE]
==== ====
If you are using bean validation on classes with If you are using bean validation on classes with properties or a primary constructor
https://kotlinlang.org/docs/reference/classes.html#constructors[primary constructor properties], parameters, you may need to leverage
make sure to use
https://kotlinlang.org/docs/reference/annotations.html#annotation-use-site-targets[annotation use-site targets] 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