Class OrderByFragmentTranslator


  • public class OrderByFragmentTranslator
    extends 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,
                                                   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

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