Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix orders really #33

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<groupId>fr.insee.survey</groupId>
<artifactId>platine-management</artifactId>
<version>1.0.25</version>
<version>1.0.26</version>
<name>platine-management</name>
<description>REST API for communication between DB and Platine-Management UI and Platine-My-Surveys UI</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down