Sort Changes by the specified field other than the primary key
- Lenguaje dominante
- Java
- Estrellas
- 130
- Forks
- 21
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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")))...`
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- database
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100