diff --git a/clients/simulator/src/main/java/com/radcortez/quarkus/playground/clients/simulator/FakerProducer.java b/clients/simulator/src/main/java/com/radcortez/quarkus/playground/clients/simulator/FakerProducer.java index 3cd9c3f..238e171 100644 --- a/clients/simulator/src/main/java/com/radcortez/quarkus/playground/clients/simulator/FakerProducer.java +++ b/clients/simulator/src/main/java/com/radcortez/quarkus/playground/clients/simulator/FakerProducer.java @@ -1,19 +1,3 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.radcortez.quarkus.playground.clients.simulator; import jakarta.enterprise.context.ApplicationScoped; diff --git a/clients/simulator/src/main/java/com/radcortez/quarkus/playground/clients/simulator/Initializer.java b/clients/simulator/src/main/java/com/radcortez/quarkus/playground/clients/simulator/Initializer.java index 9dfaabf..cf1cc37 100644 --- a/clients/simulator/src/main/java/com/radcortez/quarkus/playground/clients/simulator/Initializer.java +++ b/clients/simulator/src/main/java/com/radcortez/quarkus/playground/clients/simulator/Initializer.java @@ -1,19 +1,3 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.radcortez.quarkus.playground.clients.simulator; import io.quarkus.runtime.Startup; diff --git a/clients/simulator/src/main/java/com/radcortez/quarkus/playground/clients/simulator/ScenarioInvoker.java b/clients/simulator/src/main/java/com/radcortez/quarkus/playground/clients/simulator/ScenarioInvoker.java index c041fde..08db758 100644 --- a/clients/simulator/src/main/java/com/radcortez/quarkus/playground/clients/simulator/ScenarioInvoker.java +++ b/clients/simulator/src/main/java/com/radcortez/quarkus/playground/clients/simulator/ScenarioInvoker.java @@ -1,19 +1,3 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.radcortez.quarkus.playground.clients.simulator; import jakarta.annotation.PostConstruct; diff --git a/pom.xml b/pom.xml index 679bc3e..ac06514 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,9 @@ 1.5.5.Final 3.11.2 3.3.0 + 2.2.2 + 2.1.0 @@ -77,6 +79,13 @@ datafaker ${dependency.faker.version} + + + com.radcortez.flyway + flyway-junit5-extension + ${dependency.flyway-junit.version} + test + diff --git a/services/book-api/pom.xml b/services/book-api/pom.xml index d0d8318..c244475 100644 --- a/services/book-api/pom.xml +++ b/services/book-api/pom.xml @@ -1,7 +1,5 @@ - + 4.0.0 @@ -118,6 +116,11 @@ quarkus-flyway + + org.flywaydb + flyway-database-postgresql + + io.quarkiverse.microprofile quarkus-microprofile @@ -160,7 +163,6 @@ com.radcortez.flyway flyway-junit5-extension - 2.1.0 test diff --git a/services/book-api/src/main/java/com/radcortez/quarkus/playground/services/book/entity/Book.java b/services/book-api/src/main/java/com/radcortez/quarkus/playground/services/book/entity/Book.java index 2fe5664..710e5f1 100644 --- a/services/book-api/src/main/java/com/radcortez/quarkus/playground/services/book/entity/Book.java +++ b/services/book-api/src/main/java/com/radcortez/quarkus/playground/services/book/entity/Book.java @@ -23,7 +23,7 @@ public class Book { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "id") - @SequenceGenerator(name = "id", sequenceName = "id") + @SequenceGenerator(name = "id", sequenceName = "id", allocationSize = 1) private Long id; private String author; private String title; diff --git a/services/book-api/src/main/resources/application.properties b/services/book-api/src/main/resources/application.properties index 00db56a..ec81e66 100644 --- a/services/book-api/src/main/resources/application.properties +++ b/services/book-api/src/main/resources/application.properties @@ -10,6 +10,7 @@ quarkus.log.console.level=DEBUG # Database quarkus.datasource.db-kind=postgresql quarkus.flyway.migrate-at-start=true +quarkus.hibernate-orm.database.generation=none %prod.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/database %prod.quarkus.datasource.username=database