aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-server-spring-boot/src
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-05-27 23:17:26 +0200
committerRobert Jaros <rjaros@finn.pl>2020-05-27 23:17:26 +0200
commitddf6fcd43c16234fd264530730d8a1c2e16356fa (patch)
treebad316f1f9bb721ab328335ef86337248d14e3bd /kvision-modules/kvision-server-spring-boot/src
parent7d505bd76eedaf21ef05cfdef7758443f0bad5fc (diff)
downloadkvision-ddf6fcd43c16234fd264530730d8a1c2e16356fa.tar.gz
kvision-ddf6fcd43c16234fd264530730d8a1c2e16356fa.tar.bz2
kvision-ddf6fcd43c16234fd264530730d8a1c2e16356fa.zip
Additional annotations for spring data
Diffstat (limited to 'kvision-modules/kvision-server-spring-boot/src')
-rw-r--r--kvision-modules/kvision-server-spring-boot/src/commonMain/kotlin/pl/treksoft/kvision/remote/Annotations.kt12
-rw-r--r--kvision-modules/kvision-server-spring-boot/src/jvmMain/kotlin/pl/treksoft/kvision/remote/Annotations.kt9
2 files changed, 21 insertions, 0 deletions
diff --git a/kvision-modules/kvision-server-spring-boot/src/commonMain/kotlin/pl/treksoft/kvision/remote/Annotations.kt b/kvision-modules/kvision-server-spring-boot/src/commonMain/kotlin/pl/treksoft/kvision/remote/Annotations.kt
index 67fb1de1..d43fba0e 100644
--- a/kvision-modules/kvision-server-spring-boot/src/commonMain/kotlin/pl/treksoft/kvision/remote/Annotations.kt
+++ b/kvision-modules/kvision-server-spring-boot/src/commonMain/kotlin/pl/treksoft/kvision/remote/Annotations.kt
@@ -28,3 +28,15 @@ expect annotation class Id()
@OptIn(ExperimentalMultiplatform::class)
@OptionalExpectation
expect annotation class Transient()
+
+@OptIn(ExperimentalMultiplatform::class)
+@OptionalExpectation
+expect annotation class Table(val value: String)
+
+@OptIn(ExperimentalMultiplatform::class)
+@OptionalExpectation
+expect annotation class Column(val value: String)
+
+@OptIn(ExperimentalMultiplatform::class)
+@OptionalExpectation
+expect annotation class PersistenceConstructor()
diff --git a/kvision-modules/kvision-server-spring-boot/src/jvmMain/kotlin/pl/treksoft/kvision/remote/Annotations.kt b/kvision-modules/kvision-server-spring-boot/src/jvmMain/kotlin/pl/treksoft/kvision/remote/Annotations.kt
index 7de82631..db548149 100644
--- a/kvision-modules/kvision-server-spring-boot/src/jvmMain/kotlin/pl/treksoft/kvision/remote/Annotations.kt
+++ b/kvision-modules/kvision-server-spring-boot/src/jvmMain/kotlin/pl/treksoft/kvision/remote/Annotations.kt
@@ -22,8 +22,17 @@
package pl.treksoft.kvision.remote
import org.springframework.data.annotation.Id
+import org.springframework.data.annotation.PersistenceConstructor
import org.springframework.data.annotation.Transient
+import org.springframework.data.relational.core.mapping.Column
+import org.springframework.data.relational.core.mapping.Table
actual typealias Id = Id
actual typealias Transient = Transient
+
+actual typealias Table = Table
+
+actual typealias Column = Column
+
+actual typealias PersistenceConstructor = PersistenceConstructor