Sort Changes by the specified field other than the primary key
- Langage dominant
- Java
- Étoiles
- 130
- Forks
- 21
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
According to documentation, changes sorted by primary key and if there are no primary key by the values of the row (for a modification).
My table has a primary key, but it doesn't fit because it has a type UUID. So the changes is sorted randomly.
Is there any function to set sorting on any other field? If not, can you add?
I tried like below code, it doesn't work:
`Table(dataSource, "table_name", arrayOf(Order.asc("created")))...`
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start from the Table(dataSource, "table_name", arrayOf(Order.asc("created"))) entry point and compare it with the documented primary-key sorting behavior. Trace how the specified field is handled for modifications, then verify that changes are ordered by the requested field and add coverage where the repository's existing tests for this API reside.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- database
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 30/100