kotlin data class + bean validation jsr 303
<p>I'm trying to get Kotlin working with jsr 303 validation on a spring-data-rest project. </p>

<p>Given the following data class declarartion : </p>

<pre><code>@Entity data class User(
    @Id 
    @GeneratedValue(strategy = javax.persistence.GenerationType.AUTO)
    var id: Long? = null,

    @Size(min=5, max=15)
    val name: String
)
</code></pre>

<p>The @Size annotation has no effect here, making me able to save a user with a name of 1 character.<br>
It works well when executing the very same example but in a Java class instead of Kotlin.   </p>

<p>This makes me think of a Kotlin problem. </p>

<p>Thanks in advance for you help ! </p>