#1116 - Remove references to annotation EbeanDDL which is no longer needed

This commit is contained in:
rob bygrave
2017-09-09 13:18:39 +12:00
parent 0c22a99fdf
commit 726c682984
2 changed files with 2 additions and 6 deletions
@@ -1,6 +1,5 @@
package io.ebeaninternal.server.deploy.parse;
import io.ebean.annotation.EbeanDDL;
import io.ebeaninternal.server.deploy.BeanCascadeInfo;
import io.ebeaninternal.server.deploy.meta.DeployBeanDescriptor;
import io.ebeaninternal.server.deploy.meta.DeployBeanProperty;
@@ -94,7 +93,7 @@ public abstract class AnnotationParser extends AnnotationBase {
}
/**
* Return true if the validation groups are {@link Default} (respectively empty) or contains {@link EbeanDDL}
* Return true if the validation groups are {@link Default} (respectively empty)
* can be applied to DDL generation.
*/
protected boolean isEbeanValidationGroups(Class<?>[] groups) {
@@ -1,7 +1,6 @@
package org.tests.basic;
import io.ebean.BaseTestCase;
import io.ebean.annotation.EbeanDDL;
import io.ebean.annotation.Where;
import io.ebean.Platform;
import io.ebeaninternal.server.deploy.BeanDescriptor;
@@ -65,10 +64,8 @@ public class TestAnnotationBase extends BaseTestCase {
@NotNull(groups = ValidationGroupSomething.class)
private String null2;
@NotNull(groups = {ValidationGroupSomething.class, EbeanDDL.class})
private String null3;
public String getDirect() {
return direct;
}
@@ -145,7 +142,7 @@ public class TestAnnotationBase extends BaseTestCase {
assertTrue(bp.isNullable());
bp = descriptor.findBeanProperty("null3");
assertFalse(bp.isNullable());
assertTrue(bp.isNullable());
}
@Test