Update
This commit is contained in:
parent
ae89ce5a30
commit
bdf037da06
@ -41,9 +41,10 @@ public class GenDataSuperX extends ClassGenerator {
|
|||||||
classBuilder.addSuperinterface(iTypeClass);
|
classBuilder.addSuperinterface(iTypeClass);
|
||||||
});
|
});
|
||||||
|
|
||||||
dataModel.getExtendsInterfaces(typeSuper).distinct().forEach(superType -> {
|
Stream
|
||||||
classBuilder.addSuperinterface(superType.getJTypeName(basePackageName));
|
.concat(dataModel.getSuperTypesOf(typeSuper, true), dataModel.getExtendsInterfaces(typeSuper))
|
||||||
});
|
.distinct()
|
||||||
|
.forEach(superType -> classBuilder.addSuperinterface(superType.getJTypeName(basePackageName)));
|
||||||
|
|
||||||
Stream
|
Stream
|
||||||
.concat(dataModel.getCommonInterfaceData(typeSuper), dataModel.getCommonInterfaceGetters(typeSuper))
|
.concat(dataModel.getCommonInterfaceData(typeSuper), dataModel.getCommonInterfaceGetters(typeSuper))
|
||||||
@ -71,10 +72,6 @@ public class GenDataSuperX extends ClassGenerator {
|
|||||||
classBuilder.addMethod(setter.build());
|
classBuilder.addMethod(setter.build());
|
||||||
});
|
});
|
||||||
|
|
||||||
dataModel.getSuperTypesOf(typeSuper, true).forEach(superType -> {
|
|
||||||
classBuilder.addSuperinterface(superType.getJTypeName(basePackageName));
|
|
||||||
});
|
|
||||||
|
|
||||||
classBuilder.addMethod(MethodSpec
|
classBuilder.addMethod(MethodSpec
|
||||||
.methodBuilder("getMetaId$" + typeSuper.getName())
|
.methodBuilder("getMetaId$" + typeSuper.getName())
|
||||||
.addModifiers(Modifier.PUBLIC, Modifier.ABSTRACT)
|
.addModifiers(Modifier.PUBLIC, Modifier.ABSTRACT)
|
||||||
|
Loading…
Reference in New Issue
Block a user