BVB Source Codes

spring-mvc-showcase Show JavaBean.java Source code

Return Download spring-mvc-showcase: download JavaBean.java Source code - Download spring-mvc-showcase Source code - Type:.java
  1. package org.springframework.samples.mvc.validation;
  2.  
  3. import java.util.Date;
  4.  
  5. import javax.validation.constraints.Future;
  6. import javax.validation.constraints.Max;
  7. import javax.validation.constraints.NotNull;
  8.  
  9. import org.springframework.format.annotation.DateTimeFormat;
  10. import org.springframework.format.annotation.DateTimeFormat.ISO;
  11.  
  12. public class JavaBean {
  13.        
  14.         @NotNull
  15.         @Max(5)
  16.         private Integer number;
  17.  
  18.         @NotNull
  19.         @Future
  20.         @DateTimeFormat(iso=ISO.DATE)
  21.         private Date date;
  22.  
  23.         public Integer getNumber() {
  24.                 return number;
  25.         }
  26.  
  27.         public void setNumber(Integer number) {
  28.                 this.number = number;
  29.         }
  30.  
  31.         public Date getDate() {
  32.                 return date;
  33.         }
  34.  
  35.         public void setDate(Date date) {
  36.                 this.date = date;
  37.         }
  38.  
  39. }
  40.  
downloadJavaBean.java Source code - Download spring-mvc-showcase Source code
Related Source Codes/Software:
tushare - TuShare is a utility for crawling historical data ... 2017-01-12
raml-spec - RAML Specification http://raml.... 2017-01-12
android-stackblur - Android StackBlur is a library that can perform a ... 2017-01-12
sound-redux - A Soundcloud client built with React / Redux ... 2017-01-12
httpstat - curl statistics made simple 2017-01-12
discover-flask - Full Stack Web Development with Flask. ... 2017-01-12
micro - Async HTTP microservices made easy ... 2017-01-12
gobot - Golang framework for robotics, drones, and the Int... 2017-01-11
mas - 2017-01-13
Zappa - Serverless Python Web Services ... 2017-01-12
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top