vadimkolodingg commented on code in PR #7536:
URL: https://github.com/apache/ignite-3/pull/7536#discussion_r2815824230
##########
modules/api/src/main/java/org/apache/ignite/table/mapper/MapperBuilder.java:
##########
@@ -300,4 +302,17 @@ private static SimpleEntry<String, String>
getColumnToFieldMapping(Field fld) {
var columnName = column != null && !column.value().isEmpty() ?
column.value() : fldName;
return new SimpleEntry<>(parseIdentifier(columnName), fldName);
}
+
+ /**
+ * Gets all fields of the given class and its parents (if any).
+ */
+ private static List<Field> getAllFields(Class<?> clazz) {
+ var result = new ArrayList<Field>();
+ var current = clazz;
+ while (current != null) {
+ Collections.addAll(result, current.getDeclaredFields());
+ current = current.getSuperclass();
+ }
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]