mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-23 19:00:38 +00:00
#1116 - Remove references to annotation EbeanDDL which is no longer needed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user