类 CollectionReferenceAliasesImpl

    • 方法详细资料

      • getElementTableAlias

        public String getElementTableAlias()
        从接口复制的说明: CollectionReferenceAliases
        Obtain the alias of the table that contains the collection element values.

        Unlike in the legacy Loader case, CollectionReferences in the LoadPlan code refer to both the collection and the elements *always*. In Loader the elements were handled by EntityPersister associations entries for one-to-many and many-to-many. In LoadPlan we need to describe the collection table/columns as well as the entity element table/columns. For "basic collections" and one-to-many collections, the "element table" and the "collection table" are actually the same. For the many-to-many case this will be different and we need to track it separately.

        指定者:
        getElementTableAlias 在接口中 CollectionReferenceAliases
        返回:
        The element table alias. Only different from CollectionReferenceAliases.getCollectionTableAlias() in the case of many-to-many.