3
Playでフォームを定義する!コンパイラは、この奇妙なエラーを吐くコントローラ:overloaded method value mapping with alternative:...[a bunch of crap]...Error occurred in an application involving default arguments
。再生!エラーでオーバーロードされたメソッド値の代替案とのマッピング?
val jobForm: Form[Job] = Form(
mapping(
"id" -> of[Long],
"end_time" -> text(minLength = 3),
"start_time" -> text(minLength = 3),
"client_id" -> of[Long],
"start_address_type" -> text,
"start_address" -> text(minLength = 3),
"start_city" -> text(minLength = 3),
"start_province" -> text(minLength = 2),
"start_lat" -> optional(text),
"start_lng" -> optional(text),
"comments" -> text,
"created" -> text,
"modified" -> text,
"canceled" -> of[Boolean],
"started" -> of[Boolean],
"completed" -> of[Boolean],
"user_id" -> optional(of[Long]),
"start_order" -> optional(number),
"end_order" -> optional(number),
"account_id" -> of[Long]
)(Job.apply)(Job.unapply)
)
はい私は、22個のフィールドの大文字小文字の制限をサポートしていない理由はわかりません。 –