krotki
08/09/2016, 12:13 PMdata class Molor(val molor: String) {
val articleId: Long
val colorId: Long
override fun toString(): String {
return molor.replace("_", "-")
}
init {
validateEx(molor)
val list = molor.split("_", "-")
this.articleId = list[0].toLong()
this.colorId = list[1].toLong()
}
}
that i want to deserialize with jackson (v2.8.1 with kotlin module)