|
Play Framework/Scala example source code file (Task.scala)
The Task.scala Play Framework example source code/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package play.data.models import java.util.Date import scala.beans.BeanProperty import scala.annotation.meta.field class Task { type Min = play.data.validation.Constraints.Min @field type Required = play.data.validation.Constraints.Required @field type DateTime = play.data.format.Formats.DateTime @field @Min(10) @BeanProperty var id: Long = _ @Required @BeanProperty var name: String = _ @BeanProperty var done: Boolean = true @BeanProperty @Required @DateTime(pattern = "dd/MM/yyyy") var dueDate: Date = _ } Other Play Framework source code examplesHere is a short list of links related to this Play Framework Task.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.