Skip to content

Commit 5c99dd7

Browse files
committed
改为可排序的LinkedHashSet
1 parent 6488b98 commit 5c99dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/github/abel533/mapperhelper/EntityHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,8 @@ public static synchronized void initEntityNameMap(Class<?> entityClass) {
433433
}
434434
//列
435435
List<Field> fieldList = getAllField(entityClass, null);
436-
Set<EntityColumn> columnSet = new HashSet<EntityColumn>();
437-
Set<EntityColumn> pkColumnSet = new HashSet<EntityColumn>();
436+
Set<EntityColumn> columnSet = new LinkedHashSet<EntityColumn>();
437+
Set<EntityColumn> pkColumnSet = new LinkedHashSet<EntityColumn>();
438438
for (Field field : fieldList) {
439439
//排除字段
440440
if (field.isAnnotationPresent(Transient.class)) {

0 commit comments

Comments
 (0)