AbstractPersistentProperty.isMap() now delegates to underlying TypeInformation.
Issue #2549
This commit is contained in:
@@ -238,6 +238,14 @@ public class AbstractPersistentPropertyUnitTests {
|
||||
.containsExactly((Class) JMoleculesAggregate.class);
|
||||
}
|
||||
|
||||
@Test // #2549
|
||||
void considersVavrMaps() {
|
||||
|
||||
SamplePersistentProperty property = getProperty(VavrWrapper.class, "vavrMap");
|
||||
|
||||
assertThat(property.isMap()).isTrue();
|
||||
}
|
||||
|
||||
private <T> BasicPersistentEntity<T, SamplePersistentProperty> getEntity(Class<T> type) {
|
||||
return new BasicPersistentEntity<>(ClassTypeInformation.from(type));
|
||||
}
|
||||
@@ -399,4 +407,8 @@ public class AbstractPersistentPropertyUnitTests {
|
||||
interface JMoleculesAggregate extends AggregateRoot<JMoleculesAggregate, Identifier> {
|
||||
|
||||
}
|
||||
|
||||
class VavrWrapper {
|
||||
io.vavr.collection.Map<String, String> vavrMap;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user