The Java code generated by the Eclipse plugin does not have annotation for constraints (such as min, max) anymore.
Below is my ASN.1:
CustomTime ::= SEQUENCE {
hourPadding BIT STRING (SIZE(3)),
hour INTEGER(0..23),
minPadding BIT STRING (SIZE(2)),
minute INTEGER(0..59),
secPadding BIT STRING (SIZE(2)),
second INTEGER(0..59)
}
Below is part of the generated Java code:
public class CustomTime {
private BitString hourPadding;
private Integer hour;
private BitString minPadding;
private Integer minute;
private BitString secPadding;
private Integer second;
--
}
As you can see, there is no mix, max annotation generated. But, it was working fine previously. Below is what was generated previously:
public class CustomTime {
@NotNull
@Size(min=3, max=3)
@Component(0)
private BitString hourPadding;