feat: 调整关联查询相关功能模块访问级别

This commit is contained in:
ruansheng 2024-04-16 11:56:11 +08:00
parent 99a0824bd5
commit e918a2f67c
8 changed files with 8 additions and 8 deletions

View File

@ -32,7 +32,7 @@ import java.util.*;
import static com.mybatisflex.core.query.QueryMethods.column;
abstract class AbstractRelation<SelfEntity> {
public abstract class AbstractRelation<SelfEntity> {
protected String name;
protected String simpleName;

View File

@ -19,7 +19,7 @@ import com.mybatisflex.annotation.RelationManyToMany;
import java.lang.reflect.Field;
class ManyToMany<SelfEntity> extends ToManyRelation<SelfEntity> {
public class ManyToMany<SelfEntity> extends ToManyRelation<SelfEntity> {
public ManyToMany(RelationManyToMany annotation, Class<SelfEntity> entityClass, Field relationField) {
super(getDefaultPrimaryProperty(annotation.selfField(), entityClass, "@RelationManyToMany.selfField can not be empty in field: \"" + entityClass.getName() + "." + relationField.getName() + "\"")

View File

@ -19,7 +19,7 @@ import com.mybatisflex.annotation.RelationManyToOne;
import java.lang.reflect.Field;
class ManyToOne<SelfEntity> extends ToOneRelation<SelfEntity> {
public class ManyToOne<SelfEntity> extends ToOneRelation<SelfEntity> {
public ManyToOne(RelationManyToOne annotation, Class<SelfEntity> entityClass, Field relationField) {
super(annotation.selfField()

View File

@ -19,7 +19,7 @@ import com.mybatisflex.annotation.RelationOneToMany;
import java.lang.reflect.Field;
class OneToMany<SelfEntity> extends ToManyRelation<SelfEntity> {
public class OneToMany<SelfEntity> extends ToManyRelation<SelfEntity> {
public OneToMany(RelationOneToMany annotation, Class<SelfEntity> entityClass, Field relationField) {

View File

@ -19,7 +19,7 @@ import com.mybatisflex.annotation.RelationOneToOne;
import java.lang.reflect.Field;
class OneToOne<SelfEntity> extends ToOneRelation<SelfEntity> {
public class OneToOne<SelfEntity> extends ToOneRelation<SelfEntity> {
public OneToOne(RelationOneToOne annotation, Class<SelfEntity> entityClass, Field relationField) {
super(getDefaultPrimaryProperty(annotation.selfField(), entityClass

View File

@ -239,7 +239,7 @@ public class RelationManager {
}
private static List<AbstractRelation> getRelations(Class<?> clazz) {
public static List<AbstractRelation> getRelations(Class<?> clazz) {
return MapUtil.computeIfAbsent(classRelations, clazz, RelationManager::doGetRelations);
}

View File

@ -24,7 +24,7 @@ import java.lang.reflect.Field;
import java.util.*;
import java.util.function.Function;
class ToManyRelation<SelfEntity> extends AbstractRelation<SelfEntity> {
public class ToManyRelation<SelfEntity> extends AbstractRelation<SelfEntity> {
protected String mapKeyField;

View File

@ -21,7 +21,7 @@ import com.mybatisflex.core.util.FieldWrapper;
import java.lang.reflect.Field;
import java.util.List;
class ToOneRelation<SelfEntity> extends AbstractRelation<SelfEntity> {
public class ToOneRelation<SelfEntity> extends AbstractRelation<SelfEntity> {
public ToOneRelation(String selfField, String targetSchema, String targetTable, String targetField, String valueField,