Apologies in advance if this is in the manual and I missed it or if it is
somewhere in these forums. I have searched around for a while now and I
still can't seem to find what I am looking for.
I am trying to use the Constraints.Required on a model. I was expecting
these to be checked when I attempt to save the object but it appears my
assumption was incorrect as my app is happily writing nulls for required
I am not binding forms to the model, I am writing a web service and binding
the Json using play.libs.Json.fromJson(jsonData,MyBean.class); The only
examples I see online are binding forms to models so I suspect that this
may be the part I am missing but I am not certain. If I wanted to have it
validate on save, is that even possible and, if so, how?