app/model/form/RoomForm.scala
package model.form
import model.form.data.RoomFormData
import play.api.data.Form
import play.api.data.Forms._
/**
* @author Camilo Sampedro <camilo.sampedro@udea.edu.co>
*/
object RoomForm {
val form = Form(
mapping(
"room.name" -> nonEmptyText,
"room.laboratoryID" -> longNumber
)(RoomFormData.apply)(RoomFormData.unapply)
)
}