assertj / assertj/assertj-db

Sort Changes by the specified field other than the primary key

Aperta
#259 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
130
Fork
21
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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")))...`

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
database
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.