org.springframework.data.jdbc.core.mapping.AggregateReference<T, ID> is a valid field type in spring-data-jdbc entities. Current annotation processor produces the following code for such fields (given an Entity with String id):
public final SimplePath<AggregateReference<Entity, String>> entityId = createSimple("entityId", AggregateReference.class);
But AggregateReference is just a wrapper for fields of type <ID>, or in example above - String.
Perhaps the better way to handle this would be to generate StringPath instead of SimplePath. Because it is inherently represents a String path, but currently cannot be used where a String path is expected.
org.springframework.data.jdbc.core.mapping.AggregateReference<T, ID>is a valid field type in spring-data-jdbc entities. Current annotation processor produces the following code for such fields (given an Entity with String id):public final SimplePath<AggregateReference<Entity, String>> entityId = createSimple("entityId", AggregateReference.class);But AggregateReference is just a wrapper for fields of type <ID>, or in example above - String.
Perhaps the better way to handle this would be to generate StringPath instead of SimplePath. Because it is inherently represents a String path, but currently cannot be used where a String path is expected.