Skip to content

Instantly share code, notes, and snippets.

@khannedy
Created June 17, 2017 11:49
Show Gist options
  • Save khannedy/2c8d4063e335b7848c2e95d39ec517eb to your computer and use it in GitHub Desktop.
Save khannedy/2c8d4063e335b7848c2e95d39ec517eb to your computer and use it in GitHub Desktop.
package com.blibli.kotlin.model.request
import org.hibernate.validator.constraints.Length
import org.hibernate.validator.constraints.NotBlank
/**
* @author Eko Kurniawan Khannedy
*/
data class PersonCreateRequest(
@NotBlank
@Length(max = 50)
val firstName: String = "",
@Length(max = 50)
val lastName: String? = null
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment