Skip to content

Support for AggregateReference field type in annotation processor #117

@zdazzy

Description

@zdazzy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions