Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
object BackendService { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
common/src/main/kotlin/edu/unito/klinika/annotations/Annotations.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package edu.unito.klinika.annotations | ||
|
||
@UseExperimental(ExperimentalMultiplatform::class) | ||
@OptionalExpectation | ||
expect annotation class Entity() | ||
|
||
@UseExperimental(ExperimentalMultiplatform::class) | ||
@OptionalExpectation | ||
expect annotation class Id() | ||
|
||
@UseExperimental(ExperimentalMultiplatform::class) | ||
@OptionalExpectation | ||
expect annotation class GeneratedValue() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package edu.unito.klinika.data | ||
|
||
import edu.unito.klinika.annotations.Entity | ||
import edu.unito.klinika.annotations.GeneratedValue | ||
import edu.unito.klinika.annotations.Id | ||
|
||
@Entity | ||
class User(@Id @GeneratedValue val id: Long, val name: String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
package edu.unito.klinika | ||
|
||
import org.springframework.boot.autoconfigure.SpringBootApplication | ||
import org.springframework.boot.autoconfigure.domain.EntityScan | ||
import org.springframework.boot.runApplication | ||
|
||
|
||
@SpringBootApplication | ||
class KlinikaApplication | ||
|
||
fun main(args: Array<String>) { | ||
runApplication<KlinikaApplication>(*args) | ||
} | ||
|
||
|
10 changes: 10 additions & 0 deletions
10
server/src/main/kotlin/edu/unito/klinika/annotations/Annotations.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package edu.unito.klinika.annotations | ||
|
||
import javax.persistence.Entity | ||
import javax.persistence.GeneratedValue | ||
import javax.persistence.Id | ||
|
||
actual typealias Entity = Entity | ||
actual typealias Id = Id | ||
actual typealias GeneratedValue = GeneratedValue | ||
|