From 7db9ebce4305b50db72ca0b2ea3242650571877e Mon Sep 17 00:00:00 2001 From: Oleh Astappiev Date: Wed, 27 Sep 2023 15:28:44 +0200 Subject: [PATCH] fix: add reflection to Ipernity entities --- .../java/de/l3s/interweb/connector/ipernity/entity/Api.java | 3 +++ .../java/de/l3s/interweb/connector/ipernity/entity/Count.java | 3 +++ .../java/de/l3s/interweb/connector/ipernity/entity/Dates.java | 3 +++ .../java/de/l3s/interweb/connector/ipernity/entity/Doc.java | 3 +++ .../java/de/l3s/interweb/connector/ipernity/entity/Docs.java | 3 +++ .../l3s/interweb/connector/ipernity/entity/GetResponse.java | 3 +++ .../java/de/l3s/interweb/connector/ipernity/entity/Owner.java | 3 +++ .../interweb/connector/ipernity/entity/SearchResponse.java | 3 +++ .../java/de/l3s/interweb/connector/ipernity/entity/Tag.java | 3 +++ .../java/de/l3s/interweb/connector/ipernity/entity/Tags.java | 4 ++++ .../java/de/l3s/interweb/connector/ipernity/entity/Thumb.java | 3 +++ .../de/l3s/interweb/connector/ipernity/entity/Thumbs.java | 4 ++++ 12 files changed, 38 insertions(+) diff --git a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Api.java b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Api.java index 92c26c16..08b12856 100644 --- a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Api.java +++ b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Api.java @@ -1,7 +1,10 @@ package de.l3s.interweb.connector.ipernity.entity; +import io.quarkus.runtime.annotations.RegisterForReflection; + import com.fasterxml.jackson.annotation.JsonProperty; +@RegisterForReflection public record Api( @JsonProperty("at") String at, diff --git a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Count.java b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Count.java index abd8005d..4d0c5b39 100644 --- a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Count.java +++ b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Count.java @@ -1,7 +1,10 @@ package de.l3s.interweb.connector.ipernity.entity; +import io.quarkus.runtime.annotations.RegisterForReflection; + import com.fasterxml.jackson.annotation.JsonProperty; +@RegisterForReflection public record Count( @JsonProperty("visits") Long visits, diff --git a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Dates.java b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Dates.java index 20cbe0f2..b3bea336 100644 --- a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Dates.java +++ b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Dates.java @@ -1,7 +1,10 @@ package de.l3s.interweb.connector.ipernity.entity; +import io.quarkus.runtime.annotations.RegisterForReflection; + import com.fasterxml.jackson.annotation.JsonProperty; +@RegisterForReflection public record Dates( @JsonProperty("created") String created, diff --git a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Doc.java b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Doc.java index 7baf6ff3..6cc903f6 100644 --- a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Doc.java +++ b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Doc.java @@ -1,7 +1,10 @@ package de.l3s.interweb.connector.ipernity.entity; +import io.quarkus.runtime.annotations.RegisterForReflection; + import com.fasterxml.jackson.annotation.JsonProperty; +@RegisterForReflection public record Doc( @JsonProperty("doc_id") String docId, diff --git a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Docs.java b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Docs.java index 2c198eef..e5e1d1f6 100644 --- a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Docs.java +++ b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Docs.java @@ -2,8 +2,11 @@ import java.util.List; +import io.quarkus.runtime.annotations.RegisterForReflection; + import com.fasterxml.jackson.annotation.JsonProperty; +@RegisterForReflection public record Docs( @JsonProperty("pages") String pages, diff --git a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/GetResponse.java b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/GetResponse.java index c150b2e5..2340ebaf 100644 --- a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/GetResponse.java +++ b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/GetResponse.java @@ -1,7 +1,10 @@ package de.l3s.interweb.connector.ipernity.entity; +import io.quarkus.runtime.annotations.RegisterForReflection; + import com.fasterxml.jackson.annotation.JsonProperty; +@RegisterForReflection public record GetResponse( @JsonProperty("doc") diff --git a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Owner.java b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Owner.java index 8bda026a..77f61dd2 100644 --- a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Owner.java +++ b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Owner.java @@ -1,7 +1,10 @@ package de.l3s.interweb.connector.ipernity.entity; +import io.quarkus.runtime.annotations.RegisterForReflection; + import com.fasterxml.jackson.annotation.JsonProperty; +@RegisterForReflection public record Owner( @JsonProperty("user_id") String userId, diff --git a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/SearchResponse.java b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/SearchResponse.java index a031ad75..7e5d0ade 100644 --- a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/SearchResponse.java +++ b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/SearchResponse.java @@ -1,7 +1,10 @@ package de.l3s.interweb.connector.ipernity.entity; +import io.quarkus.runtime.annotations.RegisterForReflection; + import com.fasterxml.jackson.annotation.JsonProperty; +@RegisterForReflection public record SearchResponse( @JsonProperty("docs") Docs docs, diff --git a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Tag.java b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Tag.java index a205c1a0..32f545ab 100644 --- a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Tag.java +++ b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Tag.java @@ -1,7 +1,10 @@ package de.l3s.interweb.connector.ipernity.entity; +import io.quarkus.runtime.annotations.RegisterForReflection; + import com.fasterxml.jackson.annotation.JsonProperty; +@RegisterForReflection public record Tag( @JsonProperty("added_at") diff --git a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Tags.java b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Tags.java index e433e7b7..9de75bde 100644 --- a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Tags.java +++ b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Tags.java @@ -1,8 +1,12 @@ package de.l3s.interweb.connector.ipernity.entity; import java.util.List; + +import io.quarkus.runtime.annotations.RegisterForReflection; + import com.fasterxml.jackson.annotation.JsonProperty; +@RegisterForReflection public record Tags( @JsonProperty("total") diff --git a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Thumb.java b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Thumb.java index e664c91b..af57f11e 100644 --- a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Thumb.java +++ b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Thumb.java @@ -1,7 +1,10 @@ package de.l3s.interweb.connector.ipernity.entity; +import io.quarkus.runtime.annotations.RegisterForReflection; + import com.fasterxml.jackson.annotation.JsonProperty; +@RegisterForReflection public record Thumb( @JsonProperty("ext") String ext, diff --git a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Thumbs.java b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Thumbs.java index b8fc3524..bc7dfec1 100644 --- a/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Thumbs.java +++ b/connectors/IpernityConnector/src/main/java/de/l3s/interweb/connector/ipernity/entity/Thumbs.java @@ -1,8 +1,12 @@ package de.l3s.interweb.connector.ipernity.entity; import java.util.List; + +import io.quarkus.runtime.annotations.RegisterForReflection; + import com.fasterxml.jackson.annotation.JsonProperty; +@RegisterForReflection public record Thumbs( @JsonProperty("thumb")