Skip to content

Commit 8e18d12

Browse files
Enable auto-growing of nested paths in PropertyAccessor for improved property handling
1 parent 9f459b0 commit 8e18d12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform/core/commons/src/main/java/tools/dynamia/commons/ops/PropertyAccessor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ public static void invokeSetMethod(final Object bean, final String name, final O
363363
// Strategy 1: Try BeanWrapper first (fastest, handles most cases including nested properties)
364364
try {
365365
BeanWrapper wrapper = new BeanWrapperImpl(bean);
366+
wrapper.setAutoGrowNestedPaths(true); // auto-create null intermediate objects (e.g. product.category.name)
366367
wrapper.setPropertyValue(name, actualValue);
367368
return; // Success!
368369
} catch (Exception e) {

0 commit comments

Comments
 (0)