google-code-export / morphia

Automatically exported from code.google.com/p/morphia
1 stars 0 forks source link

Add support/documentation for @NotNull support #276

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I need to be able to validate that certain fields in my object are filled with 
values prior to saving to Mongodb. I can't find any mention in the docs for 
support of a @NotNull annotation or something similar. Is this included 
somewhere and just not documented?

Original issue reported on code.google.com by heaths.h...@gmail.com on 14 May 2011 at 11:33

GoogleCodeExporter commented 9 years ago
@NotNull is part of the JSR303 spec. you can use hibernate-validation, 
bean-validation or any impl. of JSR303.

http://code.google.com/p/morphia/wiki/ValidationExtension

Original comment by google-a...@codesmell.de on 14 May 2011 at 11:56