org.hibernate.annotations.OrderBy annotation or JPA javax.persistence.OrderBy annotation.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static OrderByTranslation | Returns: The translation.Context giving access to delegates needed during translation. context, String The user-supplied order-by fragment fragment)Perform the translation of the user-supplied fragment, returning the translation. |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| OrderByFragmentTranslator | back to summary |
|---|---|
| public OrderByFragmentTranslator() | |
| translate | back to summary |
|---|---|
| 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
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | injectAliases(OrderByAliasResolver
The strategy to resolver the proper table alias to use per column aliasResolver)Implements org. |
| columnReferences | back to summary |
|---|---|
| private final Set<String> columnReferences | |
| sqlTemplate | back to summary |
|---|---|
| private final String sqlTemplate | |
| StandardOrderByTranslationImpl | back to summary |
|---|---|
| public StandardOrderByTranslationImpl(String sqlTemplate, Set<String> columnReferences) | |
| injectAliases | back to summary |
|---|---|
| public String injectAliases(OrderByAliasResolver aliasResolver) Implements org. Doc from org. Inject table aliases into the translated fragment to properly qualify column references, using the given 'aliasResolver' to determine the the proper table alias to use for each column reference.
| |