Hi i have been trying to validate the data of the rest request through "JSR-303" and the code are as follows -:
*pojo annotations level
@NotNull(message="Carrier ID cannot be null")
private String carrier;
*MessageStatusDoc class
@Id
private String transactionId;
private String status;
private Key key;
private AccountDetail accountDetail;
*calling method
saveMessage(@Valid @RequestBody MessageStatusDoc messageStatusDoc)
The key Class contatins the carrier field
Can any one suggest why i am not able to catch the error..?
PS the value is printed as null on the console when i am trying to log it ..