Class QReferenceMapping<Q extends QReference<R,​OR>,​R extends MReference,​OQ extends FlexibleRelationalPathBase<OR>,​OR>

    • Constructor Detail

      • QReferenceMapping

        protected QReferenceMapping​(String tableName,
                                    String defaultAliasName,
                                    Class<Q> queryType,
                                    @NotNull
                                    @NotNull SqaleRepoContext repositoryContext,
                                    @NotNull
                                    @NotNull Supplier<QueryTableMapping<?,​TQ,​TR>> targetMappingSupplier,
                                    @Nullable
                                    @Nullable Supplier<QueryTableMapping<OS,​OQ,​OR>> ownerMappingSupplier,
                                    @Nullable
                                    @Nullable BiFunction<Q,​OQ,​com.querydsl.core.types.Predicate> ownerJoin,
                                    @Nullable
                                    @Nullable Class<?> ownerType,
                                    @Nullable
                                    @Nullable ItemPath referencePath)
        Constructor with owner related parameters to support reference search.
        Type Parameters:
        OS - reference owner schema type, needed only for safer typing in the constructor
        TQ - type of target entity path
        TR - row type related to the QReferenceMapping
        Parameters:
        queryType - Querydsl query type related to this mapping
        targetMappingSupplier - supplier of the query mapping for the reference target
        ownerMappingSupplier - optional supplier for reference owner, needed for .. (parent) resolution and support of reference search
        ownerJoin - JOIN function for parent resolution
        ownerType - needed for registration for reference search later; this cannot be taken from the ownerMappingSupplier yet, because the supplier may still return null at this moment
        referencePath - item path to the reference in the owner