|
27 | 27 |
|
28 | 28 | import org.apache.commons.logging.Log; |
29 | 29 | import org.apache.commons.logging.LogFactory; |
30 | | - |
31 | 30 | import org.springframework.beans.BeansException; |
32 | 31 | import org.springframework.beans.factory.BeanClassLoaderAware; |
33 | 32 | import org.springframework.context.ApplicationContext; |
|
40 | 39 | import org.springframework.data.cassandra.core.mapping.*; |
41 | 40 | import org.springframework.data.cassandra.core.mapping.Embedded.OnEmpty; |
42 | 41 | import org.springframework.data.convert.CustomConversions; |
43 | | -import org.springframework.data.mapping.AccessOptions; |
44 | | -import org.springframework.data.mapping.MappingException; |
45 | | -import org.springframework.data.mapping.PersistentEntity; |
46 | | -import org.springframework.data.mapping.PersistentProperty; |
47 | | -import org.springframework.data.mapping.PersistentPropertyAccessor; |
48 | | -import org.springframework.data.mapping.PersistentPropertyPath; |
49 | | -import org.springframework.data.mapping.PersistentPropertyPathAccessor; |
50 | | -import org.springframework.data.mapping.PreferredConstructor; |
51 | | -import org.springframework.data.mapping.PreferredConstructor.Parameter; |
| 42 | +import org.springframework.data.mapping.*; |
52 | 43 | import org.springframework.data.mapping.context.MappingContext; |
53 | 44 | import org.springframework.data.mapping.model.ConvertingPropertyAccessor; |
54 | 45 | import org.springframework.data.mapping.model.DefaultSpELExpressionEvaluator; |
@@ -1446,10 +1437,9 @@ public CassandraPersistentEntityParameterValueProvider(CassandraPersistentEntity |
1446 | 1437 | @SuppressWarnings("unchecked") |
1447 | 1438 | public <T> T getParameterValue(Parameter<T, CassandraPersistentProperty> parameter) { |
1448 | 1439 |
|
1449 | | - PreferredConstructor<CassandraPersistentEntity<?>, CassandraPersistentProperty> constructor = (PreferredConstructor<CassandraPersistentEntity<?>, CassandraPersistentProperty>) entity |
1450 | | - .getPersistenceConstructor(); |
| 1440 | + InstanceCreatorMetadata<CassandraPersistentProperty> creatorMetadata = entity.getInstanceCreatorMetadata(); |
1451 | 1441 |
|
1452 | | - if (constructor != null && constructor.isEnclosingClassParameter(parameter)) { |
| 1442 | + if (creatorMetadata != null && creatorMetadata.isParentParameter(parameter)) { |
1453 | 1443 | return (T) parent; |
1454 | 1444 | } |
1455 | 1445 |
|
|
0 commit comments