title: How to pass @RequestParams into a nested POJO when using kotlin
body: <p>I have a method like: </p>
  
  <pre><code>fun all(@Validated pagination: Pagination)
  </code></pre>
  
  <p>the <code>pagination</code> looks like </p>
  
  <pre><code>class Pagination(
      @field:NotNull(message = "page must be =&gt; 0")
      @field:Min(0, message = "page must be =&gt; 0")
      val page: Int = 0,
      @field:Min(1, message = "size must be  0 =&lt; size &gt;= 12")
      @field:Max(12, message = "size must be  0 =&lt; size &gt;= 12")
      val size: Int = 12,
      @field:Valid
      val sort: Sort = Sort("title", "ASC")
  )
  </code></pre>
  
  <p>what itself has a </p>
  
  <pre><code>class Sort(
      @field:NotBlank
      val by: String,
      @field:NotBlank
      @field:Pattern(regexp = "^(asc|ASC)|(desc|DESC)$")
      val order: String
  )
  </code></pre>
  
  <p>If I call the endpoint with <code>?page=0&amp;size=2&amp;sort.by=title&amp;sort.order=DESC</code>
  both, <code>page</code>and <code>size</code> are taken into account, but not <code>sort.order</code> and <code>sort.by</code>.
  From what I'vre read this should be doable, but because I use Kotlin I may overlook something?</p>