Skip to content

Commit

Permalink
Merge pull request #109 from nls-jajuko/bugfix/1.4.1
Browse files Browse the repository at this point in the history
Support for PostgreSQL uuid arrays #108
  • Loading branch information
nls-jajuko authored May 24, 2024
2 parents 5557866 + 51af30f commit 3e16b95
Show file tree
Hide file tree
Showing 33 changed files with 37 additions and 32 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>hakunapi</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
<packaging>pom</packaging>

<name>Hakunapi</name>
Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-config-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-config-test</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-core</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-cql2-functions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-cql2-functions</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-cql2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-cql2</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-csv/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-csv</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-esbulk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-esbulk</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-geojson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-geojson</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-gml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-gml</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-gpkg/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-gpkg</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-html/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-html</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-jsonfg/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-jsonfg</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-proj-gt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-proj-gt</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-proj-jhe/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-proj-jhe</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-smile/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-smile</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-source-oracle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-source-oracle</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-source-postgis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-source-postgis</artifactId>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.UUID;
import java.util.function.Predicate;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -440,6 +441,8 @@ private static List<HakunaPropertyType> parseArrayType(Class<?> cls) {
chain.add(HakunaPropertyType.BOOLEAN);
} else if (cls.equals(String.class)) {
chain.add(HakunaPropertyType.STRING);
} else if(cls.equals(UUID.class)) {
chain.add(HakunaPropertyType.UUID);
} else {
throw new IllegalArgumentException("Unsupported array type from class!");
}
Expand All @@ -463,6 +466,8 @@ private static HakunaPropertyType parseArrayType(String typeName) {
case "_varchar":
case "_text":
return HakunaPropertyType.STRING;
case "_uuid":
return HakunaPropertyType.UUID;
}
throw new IllegalArgumentException("Can not determine array type from " + typeName);
}
Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-telemetry-opentelemetry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-telemetry-opentelemetry</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion src/hakunapi-telemetry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>src</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-telemetry</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>hakunapi</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>src</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion webapp-jakarta/hakunapi-oracle-webapp-jakarta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>webapp-jakarta</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-oracle-webapp-jakarta</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion webapp-jakarta/hakunapi-simple-servlet-jakarta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>webapp-jakarta</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-simple-servlet-jakarta</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion webapp-jakarta/hakunapi-simple-webapp-jakarta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>webapp-jakarta</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-simple-webapp-jakarta</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion webapp-jakarta/hakunapi-simple-webapp-test-jakarta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>webapp-jakarta</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-simple-webapp-test-jakarta</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion webapp-jakarta/hakunapi-telemetry-webapp-jakarta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>webapp-jakarta</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-telemetry-webapp-jakarta</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion webapp-jakarta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>hakunapi</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>webapp-jakarta</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion webapp-javax/hakunapi-oracle-webapp-javax/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>webapp-javax</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-oracle-webapp-javax</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion webapp-javax/hakunapi-simple-servlet-javax/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>webapp-javax</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-simple-servlet-javax</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion webapp-javax/hakunapi-simple-webapp-javax/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>webapp-javax</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-simple-webapp-javax</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion webapp-javax/hakunapi-simple-webapp-test-javax/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>webapp-javax</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-simple-webapp-test-javax</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion webapp-javax/hakunapi-telemetry-webapp-javax/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>webapp-javax</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>hakunapi-telemetry-webapp-javax</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion webapp-javax/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>fi.nls.hakunapi</groupId>
<artifactId>hakunapi</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>
</parent>
<artifactId>webapp-javax</artifactId>
<packaging>pom</packaging>
Expand Down

0 comments on commit 3e16b95

Please sign in to comment.