@play.data.validation.Constraints.Min(1)

Here are the examples of the java api @play.data.validation.Constraints.Min(1) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

15 Source : JOrderItem.java
with MIT License
from vangav

@Enreplacedy
public clreplaced JOrderItem extends Model {

    private static final long serialVersionUID = 1L;

    @Id
    public Long id;

    @ManyToOne
    public JOrder order;

    @Required
    @Min(1)
    public Integer qty;

    @Required
    @Pattern(value = "[A-Z]{4}-[0-9]{3,}", message = "A valid product code is required")
    public String productCode;

    @DateTime(pattern = "yyyy-MM-dd")
    public Date deliveryDate;
}