Bean Validation

Welcome to the Bean Validation specification website. You will find information about the stable version 1.0 as well as version 1.1 currently being worked on.

What is Bean Validation

Bean Validation is a Java specification which:

  • provides a unified way of declaring and defining constraints on an object model.
  • defines a runtime engine to validate objects
public class User {
    @NotNull @Email 
    public String getEmail() { return email; }
    public void setEmail(String email) { 
      this.email = email; 
    }
    private String email;
}

Learn more...

Bean Validation 1.1

The first early draft is available.

Bean Validation 1.1 is a specification proposal which aims at improving upon the initial version. Its JCP matricule is JSR-349. Like all Red Hat lead JSRs, Bean Validation is made in the open in an open source fashion. You are encouraged to come contribute to make a difference.

You can check out the Bean Validation 1.1 goals or read the first public draft.

Provide feedback or participate...

Feed Latest news

Stay up to date, subscribe to the news feed.

Bean Validation 1.1 officially reaches the JCP

28 March 2012

Bean Validation 1.1 early draft 1 officially reaches the JCP and is available on their website. You already knew about it from the release and artifacts announcements. That's still a significant milestone that has to be reached by the JCP rules. A specification needs to produce a certain amount of output which is regulated by...

Code artifacts published for Bean Validation 1.1 early draft 1

16 March 2012

Following the release of the first early draft for Bean Validation 1.1, we have published the code artifacts: the code source the jar the JavaDoc All are available on JBoss's Maven repository. Alternatively, you can reference them in your Maven POM <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> <version>1.1.0.Alpha1</version> </dependency> Enjoy. ...

Bean Validation 1.1 early draft 1 is out - time for feedback

13 March 2012

After a long time in the shadows of open work... Ahem, take two. After a long time at work, I am very pleased to announce Bean Validation 1.1 early draft 1. This is our first big milestone since the release of 1.0. The draft is making its way through the official channels of...

Proposal for method validation added

01 February 2012

The first draft of the proposal for method-level validation is online. The proposal covers the declaration of parameter as well as return values constraints, extensions to the Validator API, related additions to the meta-data API etc. So check out the proposal document and let us know what you think, e.g. by sending...