From c19a6c46d5bfc2847361cd6f30c66752303cccd6 Mon Sep 17 00:00:00 2001 From: "vincenzo.corso" Date: Fri, 17 Nov 2023 20:34:27 +0100 Subject: [PATCH] fix(common-quarkus): switch to jakarta namespace --- .../messaging/outbox/jpa/OutboxJpaMessageProducer.java | 7 +++---- .../messaging/outbox/jpa/OutboxMessageEntity.java | 9 ++++----- .../outbox/mongodb/OutboxMongoMessageProducer.java | 3 +-- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/common-quarkus/outbox-jpa-extension/runtime/src/main/java/it/vincenzocorso/carsharing/common/quarkus/messaging/outbox/jpa/OutboxJpaMessageProducer.java b/common-quarkus/outbox-jpa-extension/runtime/src/main/java/it/vincenzocorso/carsharing/common/quarkus/messaging/outbox/jpa/OutboxJpaMessageProducer.java index e2fc7fc..ad1919e 100644 --- a/common-quarkus/outbox-jpa-extension/runtime/src/main/java/it/vincenzocorso/carsharing/common/quarkus/messaging/outbox/jpa/OutboxJpaMessageProducer.java +++ b/common-quarkus/outbox-jpa-extension/runtime/src/main/java/it/vincenzocorso/carsharing/common/quarkus/messaging/outbox/jpa/OutboxJpaMessageProducer.java @@ -2,10 +2,9 @@ import it.vincenzocorso.carsharing.common.messaging.outbox.AbstractOutboxMessageProducer; import it.vincenzocorso.carsharing.common.messaging.outbox.OutboxMessage; - -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; -import javax.persistence.EntityManager; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManager; @ApplicationScoped public class OutboxJpaMessageProducer extends AbstractOutboxMessageProducer { diff --git a/common-quarkus/outbox-jpa-extension/runtime/src/main/java/it/vincenzocorso/carsharing/common/quarkus/messaging/outbox/jpa/OutboxMessageEntity.java b/common-quarkus/outbox-jpa-extension/runtime/src/main/java/it/vincenzocorso/carsharing/common/quarkus/messaging/outbox/jpa/OutboxMessageEntity.java index d942372..db9eb97 100644 --- a/common-quarkus/outbox-jpa-extension/runtime/src/main/java/it/vincenzocorso/carsharing/common/quarkus/messaging/outbox/jpa/OutboxMessageEntity.java +++ b/common-quarkus/outbox-jpa-extension/runtime/src/main/java/it/vincenzocorso/carsharing/common/quarkus/messaging/outbox/jpa/OutboxMessageEntity.java @@ -1,13 +1,12 @@ package it.vincenzocorso.carsharing.common.quarkus.messaging.outbox.jpa; import it.vincenzocorso.carsharing.common.messaging.MessageFields; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import lombok.NoArgsConstructor; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; - @Entity @Table(name = "outbox") @NoArgsConstructor diff --git a/common-quarkus/outbox-mongo-extension/runtime/src/main/java/it/vincenzocorso/carsharing/common/quarkus/messaging/outbox/mongodb/OutboxMongoMessageProducer.java b/common-quarkus/outbox-mongo-extension/runtime/src/main/java/it/vincenzocorso/carsharing/common/quarkus/messaging/outbox/mongodb/OutboxMongoMessageProducer.java index 7d0f2b2..326fcc5 100644 --- a/common-quarkus/outbox-mongo-extension/runtime/src/main/java/it/vincenzocorso/carsharing/common/quarkus/messaging/outbox/mongodb/OutboxMongoMessageProducer.java +++ b/common-quarkus/outbox-mongo-extension/runtime/src/main/java/it/vincenzocorso/carsharing/common/quarkus/messaging/outbox/mongodb/OutboxMongoMessageProducer.java @@ -2,8 +2,7 @@ import it.vincenzocorso.carsharing.common.messaging.outbox.AbstractOutboxMessageProducer; import it.vincenzocorso.carsharing.common.messaging.outbox.OutboxMessage; - -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @ApplicationScoped public class OutboxMongoMessageProducer extends AbstractOutboxMessageProducer {