Adapt to newly introduced methods in PersistentProperty.

Implement getPersistentEntityTypeInformation() and getAssociationTargetTypeInformation() methods.

Closes #1149
This commit is contained in:
Mark Paluch
2021-07-13 08:14:21 +02:00
parent 4409fbc11d
commit 02c061a35e
3 changed files with 33 additions and 0 deletions

View File

@@ -277,6 +277,17 @@ class AnnotatedCassandraConstructorProperty implements CassandraPersistentProper
return delegate.getAssociationTargetType();
}
@Override
public Iterable<? extends TypeInformation<?>> getPersistentEntityTypeInformation() {
return delegate.getPersistentEntityTypeInformation();
}
@Nullable
@Override
public TypeInformation<?> getAssociationTargetTypeInformation() {
return delegate.getAssociationTargetTypeInformation();
}
@Override
public void setColumnName(CqlIdentifier columnName) {
throw new UnsupportedOperationException();

View File

@@ -270,6 +270,17 @@ class CassandraConstructorProperty implements CassandraPersistentProperty {
return null;
}
@Override
public Iterable<? extends TypeInformation<?>> getPersistentEntityTypeInformation() {
return Collections.emptyList();
}
@Nullable
@Override
public TypeInformation<?> getAssociationTargetTypeInformation() {
return null;
}
@Override
public void setColumnName(CqlIdentifier columnName) {
throw new UnsupportedOperationException();

View File

@@ -611,6 +611,17 @@ public class EmbeddedEntityOperations {
return delegate.getAssociationTargetType();
}
@Override
public Iterable<? extends TypeInformation<?>> getPersistentEntityTypeInformation() {
return delegate.getPersistentEntityTypeInformation();
}
@Nullable
@Override
public TypeInformation<?> getAssociationTargetTypeInformation() {
return delegate.getAssociationTargetTypeInformation();
}
@Override
public <T> PersistentPropertyAccessor<T> getAccessorForOwner(T owner) {
return delegate.getAccessorForOwner(owner);