Added support for @NotNull annotations and @Size(min=1) annotation on
items with inferred cardinality constraints in generated code.