mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-09-25 03:31:07 +00:00
Fix DtoMetaDeployProperty: remove unused Method param; fix findField superclass traversal; wire up findMetaAnnotations for setter annotation support
- DtoMetaDeployProperty: remove unused Method parameter from constructor - DtoMetaProperty.findField: use loop variable 'type' (not outer 'dtoType') so superclass fields are correctly found - DtoMetaProperty constructor: call findMetaAnnotations() which merges both field and setter annotations, rather than reading field annotations only - DefaultTypeManager: keep both MethodType import and Annotation import - Fix missing imports in EbeanServerFactory_ServerConfigStart_Test Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -4,7 +4,6 @@ import io.ebean.annotation.MutationDetection;
|
||||
import io.ebeaninternal.server.deploy.meta.DeployProperty;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -24,7 +23,7 @@ class DtoMetaDeployProperty implements DeployProperty {
|
||||
private final boolean nullable;
|
||||
private MutationDetection mutationDetection = MutationDetection.DEFAULT;
|
||||
|
||||
DtoMetaDeployProperty(String name, Class<?> ownerType, Type genericType, Class<?> propertyType, Set<Annotation> metaAnnotations, Method method) {
|
||||
DtoMetaDeployProperty(String name, Class<?> ownerType, Type genericType, Class<?> propertyType, Set<Annotation> metaAnnotations) {
|
||||
this.name = name;
|
||||
this.ownerType = ownerType;
|
||||
this.genericType = genericType;
|
||||
|
||||
+2
@@ -2,6 +2,8 @@ package io.ebean.xtest.base;
|
||||
|
||||
import io.ebean.Database;
|
||||
import io.ebean.DatabaseBuilder;
|
||||
import io.ebean.DatabaseFactory;
|
||||
import io.ebean.config.DatabaseConfig;
|
||||
import io.ebean.event.ServerConfigStartup;
|
||||
import io.ebeaninternal.api.SpiLogger;
|
||||
import io.ebeaninternal.api.SpiLoggerFactory;
|
||||
|
||||
Reference in New Issue
Block a user