mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 09:38:26 +08:00
Merge branch 'main' of https://gitee.com/mybatis-flex/mybatis-flex
This commit is contained in:
commit
1871dc1ca7
@ -101,7 +101,8 @@ public class TableInfoFactory {
|
|||||||
if (genericInterfaces.length == 1) {
|
if (genericInterfaces.length == 1) {
|
||||||
Type type = genericInterfaces[0];
|
Type type = genericInterfaces[0];
|
||||||
if (type instanceof ParameterizedType) {
|
if (type instanceof ParameterizedType) {
|
||||||
return (Class<?>) ((ParameterizedType) type).getActualTypeArguments()[0];
|
Type actualTypeArgument = ((ParameterizedType) type).getActualTypeArguments()[0];
|
||||||
|
return actualTypeArgument instanceof Class ? (Class<?>) actualTypeArgument : null;
|
||||||
} else if (type instanceof Class) {
|
} else if (type instanceof Class) {
|
||||||
return getEntityClass((Class<?>) type);
|
return getEntityClass((Class<?>) type);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user