I am rendering a form to present an annotated domain model class, i.e.:
@Entity
class User {
@NotNull
private String name;
// other code
}
I would like to read the annotated meta-data to decide how to render each property.
I would use it to add css classes to my input tags and finally use jQuery to attach validation methods on such fields.
Does freemarker offer any way to access the annotated meta-data?