package com.github.aureliano.achmed;

import com.github.aureliano.achmed.annotation.NotEmpty;
import com.github.aureliano.achmed.annotation.NotNull;
import com.github.aureliano.achmed.annotation.Pattern;

public class Model {

	private String id;
	
	public Model() {
		super();
	}

	@NotNull
	@NotEmpty
	@Pattern(value = "[\\d\\w]{3,5}")
	public String getId() {
		return this.id;
	}

	public Model withId(String id) {
		this.id = id;
		return this;
	}
}
@@ -31,16 +31,119 @@
 chmed;%0A%0A
+import java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport com.github.aureliano.achmed.annotation.Min;%0A
 import c
@@ -348,34 +348,96 @@
 d;%0A%09
-%0A%09public Model() %7B%0A%09%09super
+private List%3CString%3E exceptions;%0A%09%0A%09public Model() %7B%0A%09%09this.exceptions = new ArrayList%3C%3E
 ();%0A
@@ -496,16 +496,33 @@
 %7B3,5%7D%22)%0A
+%09@Min(value = 3)%0A
 %09public 
@@ -627,10 +627,182 @@
 this;%0A%09%7D
+%0A%0A%09public Model addException(String ex) %7B%0A%09%09this.exceptions.add(ex);%0A%09%09return this;%0A%09%7D%0A%0A%09@Min(value = 1)%0A%09public List%3CString%3E getExceptions() %7B%0A%09%09return this.exceptions;%0A%09%7D
 %0A%7D

Add min annotation.