File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,6 @@ T mapRow() {
395395 private T populateProperties (T instance , @ Nullable Object idValue ) {
396396
397397 PersistentPropertyAccessor <T > propertyAccessor = getPropertyAccessor (entity , instance );
398-
399398 PreferredConstructor <T , RelationalPersistentProperty > persistenceConstructor = entity .getPersistenceConstructor ();
400399
401400 for (RelationalPersistentProperty property : entity ) {
@@ -539,7 +538,8 @@ private T createInstanceInternal(@Nullable Object idValue) {
539538 RelationalPersistentProperty property = entity .getRequiredPersistentProperty (parameterName );
540539 return readOrLoadProperty (idValue , property );
541540 });
542- return populateProperties (instance , idValue );
541+
542+ return entity .requiresPropertyPopulation () ? populateProperties (instance , idValue ) : instance ;
543543 }
544544
545545 }
You can’t perform that action at this time.
0 commit comments