Procházet zdrojové kódy

Iterate through etities in order of creation

pull/29/head
Kristijan Mitrovic před 4 roky
rodič
revize
42a6a1da45
2 změnil soubory, kde provedl 6 přidání a 4 odebrání
  1. +5
    -3
      bubble-server/src/main/java/bubble/service/dbfilter/FullEntityIterator.java
  2. +1
    -1
      utils/cobbzilla-wizard

+ 5
- 3
bubble-server/src/main/java/bubble/service/dbfilter/FullEntityIterator.java Zobrazit soubor

@@ -7,6 +7,8 @@ package bubble.service.dbfilter;
import bubble.model.cloud.BubbleNetwork;
import bubble.server.BubbleConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.cobbzilla.wizard.model.Identifiable;
import org.hibernate.criterion.Order;

import java.util.concurrent.atomic.AtomicReference;

@@ -25,9 +27,9 @@ public class FullEntityIterator extends EntityIterator {
}

protected void iterate() {
config.getEntityClasses().forEach(c -> {
addEntities(true, c, config.getDaoForEntityClass(c).findAll(), network, null, null);
});
config.getEntityClasses()
.forEach(c -> addEntities(true, c, config.getDaoForEntityClass(c).findAll(Order.asc(Identifiable.CTIME)),
network, null, null));
log.info("iterate: completed");
}



+ 1
- 1
utils/cobbzilla-wizard

@@ -1 +1 @@
Subproject commit 035690f052f72841bfedc5b25e3798fa22f7b2dd
Subproject commit 32a5cf971f59744fa7ad5350ca778750958ce695

Načítá se…
Zrušit
Uložit