NEW: flag to control, if javax.validation NotNull annotation should generate a NotNull column or not (#1306)

This commit is contained in:
Roland Praml
2018-03-02 12:02:02 +13:00
committed by Rob Bygrave
parent 94a118d635
commit 18ca3403ac
3 changed files with 39 additions and 0 deletions
@@ -97,6 +97,9 @@ public abstract class AnnotationParser extends AnnotationBase {
* can be applied to DDL generation.
*/
protected boolean isEbeanValidationGroups(Class<?>[] groups) {
if (!util.isUseJavaxValidationNotNull()) {
return false;
}
if (groups.length == 0
|| groups.length == 1 && javax.validation.groups.Default.class.isAssignableFrom(groups[0])) {
return true;