diff --git a/pom.xml b/pom.xml index b26b71f1..8890a285 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ fr.insee.survey platine-management - 1.0.25 + 1.0.26 platine-management REST API for communication between DB and Platine-Management UI and Platine-My-Surveys UI diff --git a/src/main/java/fr/insee/survey/datacollectionmanagement/util/Dataloader.java b/src/main/java/fr/insee/survey/datacollectionmanagement/util/Dataloader.java index ac0910b9..86035794 100644 --- a/src/main/java/fr/insee/survey/datacollectionmanagement/util/Dataloader.java +++ b/src/main/java/fr/insee/survey/datacollectionmanagement/util/Dataloader.java @@ -239,16 +239,17 @@ private void initOrder() { if (nbExistingOrders !=9 ) { // Creating table order LOGGER.info("loading eventorder data"); + orderRepository.deleteAll(); orderRepository - .saveAndFlush(new EventOrder(Long.parseLong("8"), TypeQuestioningEvent.REFUSAL.toString(), 9)); + .saveAndFlush(new EventOrder(Long.parseLong("9"), TypeQuestioningEvent.REFUSAL.toString(), 9)); orderRepository - .saveAndFlush(new EventOrder(Long.parseLong("7"), TypeQuestioningEvent.VALINT.toString(), 8)); + .saveAndFlush(new EventOrder(Long.parseLong("8"), TypeQuestioningEvent.VALINT.toString(), 8)); orderRepository - .saveAndFlush(new EventOrder(Long.parseLong("6"), TypeQuestioningEvent.VALPAP.toString(), 7)); - orderRepository.saveAndFlush(new EventOrder(Long.parseLong("5"), TypeQuestioningEvent.HC.toString(), 6)); + .saveAndFlush(new EventOrder(Long.parseLong("7"), TypeQuestioningEvent.VALPAP.toString(), 7)); + orderRepository.saveAndFlush(new EventOrder(Long.parseLong("6"), TypeQuestioningEvent.HC.toString(), 6)); orderRepository - .saveAndFlush(new EventOrder(Long.parseLong("4"), TypeQuestioningEvent.PARTIELINT.toString(), 5)); - orderRepository.saveAndFlush(new EventOrder(Long.parseLong("3"), TypeQuestioningEvent.WASTE.toString(), 4)); + .saveAndFlush(new EventOrder(Long.parseLong("5"), TypeQuestioningEvent.PARTIELINT.toString(), 5)); + orderRepository.saveAndFlush(new EventOrder(Long.parseLong("4"), TypeQuestioningEvent.WASTE.toString(), 4)); orderRepository.saveAndFlush(new EventOrder(Long.parseLong("3"), TypeQuestioningEvent.FOLLOWUP.toString(), 3)); orderRepository.saveAndFlush(new EventOrder(Long.parseLong("2"), TypeQuestioningEvent.PND.toString(), 2));