AbstractPersistentProperty now considers association target type for ….getPersistentEntityTypes().
Prior to this commit, the lookup of types to be added as persistent entities for a given PersistentProperty used the actual property type which did not consider the association target type at all. Removed the usage of Optional for the entity type information and switched to use TypeInformation for the raw association target type so that it can be considered in ….getActualType().
This commit is contained in:
@@ -233,6 +233,9 @@ public class AbstractPersistentPropertyUnitTests {
|
||||
|
||||
assertThat(property.isAssociation()).isTrue();
|
||||
assertThat(property.getAssociationTargetType()).isEqualTo(JMoleculesAggregate.class);
|
||||
assertThat(property.getPersistentEntityTypes())
|
||||
.extracting(it -> it.getType())
|
||||
.containsExactly((Class) JMoleculesAggregate.class);
|
||||
}
|
||||
|
||||
private <T> BasicPersistentEntity<T, SamplePersistentProperty> getEntity(Class<T> type) {
|
||||
|
||||
Reference in New Issue
Block a user