Class OrderByFragmentTranslator

  • public class OrderByFragmentTranslator
    extends java.lang.Object
    A translator for order-by mappings, whether specified by hbm.xml files, Hibernate OrderBy annotation or JPA OrderBy annotation.
    • Constructor Detail

      • OrderByFragmentTranslator

        public OrderByFragmentTranslator()
    • Method Detail

      • translate

        public static OrderByTranslation translate​(TranslationContext context,
                                                   java.lang.String fragment)
        Perform the translation of the user-supplied fragment, returning the translation.

        The important distinction to this split between (1) translating and (2) resolving aliases is that both happen at different times

        context - Context giving access to delegates needed during translation.
        fragment - The user-supplied order-by fragment
        The translation.