From 4eda20451395d7d4edc5c85f67e010afb4426b10 Mon Sep 17 00:00:00 2001 From: Simon Schneider <10846939+raynigon@users.noreply.github.com> Date: Fri, 13 Aug 2021 19:11:15 +0200 Subject: [PATCH] Handle Unit Types in JPA --- .../META-INF/services/org.hibernate.boot.model.TypeContributor | 1 + .../unit/api/jpa/configuration/UnitApiTypeRegistration.java | 0 .../java/com/raynigon/unit/api/jpa/type/UnitJavaDescriptor.java | 0 .../src/main/java/com/raynigon/unit/api/jpa/type/UnitType.java | 0 4 files changed, 1 insertion(+) create mode 100644 jpa-starter/src/main/resources/META-INF/services/org.hibernate.boot.model.TypeContributor create mode 100644 spring-boot-jpa-starter/src/main/java/com/raynigon/unit/api/jpa/configuration/UnitApiTypeRegistration.java create mode 100644 spring-boot-jpa-starter/src/main/java/com/raynigon/unit/api/jpa/type/UnitJavaDescriptor.java create mode 100644 spring-boot-jpa-starter/src/main/java/com/raynigon/unit/api/jpa/type/UnitType.java diff --git a/jpa-starter/src/main/resources/META-INF/services/org.hibernate.boot.model.TypeContributor b/jpa-starter/src/main/resources/META-INF/services/org.hibernate.boot.model.TypeContributor new file mode 100644 index 00000000..03f78eca --- /dev/null +++ b/jpa-starter/src/main/resources/META-INF/services/org.hibernate.boot.model.TypeContributor @@ -0,0 +1 @@ +com.raynigon.unit.api.jpa.configuration.UnitApiTypeRegistration diff --git a/spring-boot-jpa-starter/src/main/java/com/raynigon/unit/api/jpa/configuration/UnitApiTypeRegistration.java b/spring-boot-jpa-starter/src/main/java/com/raynigon/unit/api/jpa/configuration/UnitApiTypeRegistration.java new file mode 100644 index 00000000..e69de29b diff --git a/spring-boot-jpa-starter/src/main/java/com/raynigon/unit/api/jpa/type/UnitJavaDescriptor.java b/spring-boot-jpa-starter/src/main/java/com/raynigon/unit/api/jpa/type/UnitJavaDescriptor.java new file mode 100644 index 00000000..e69de29b diff --git a/spring-boot-jpa-starter/src/main/java/com/raynigon/unit/api/jpa/type/UnitType.java b/spring-boot-jpa-starter/src/main/java/com/raynigon/unit/api/jpa/type/UnitType.java new file mode 100644 index 00000000..e69de29b