We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b332102 commit b1b3fa5Copy full SHA for b1b3fa5
src/main/kotlin/andreas311/miso/domain/environment/Environment.kt
@@ -0,0 +1,23 @@
1
+package andreas311.miso.domain.environment
2
+
3
+import org.hibernate.annotations.DynamicUpdate
4
+import javax.persistence.*
5
6
+@Entity
7
+@DynamicUpdate
8
+class Environment(
9
10
+ @Id
11
+ @Column(name = "environment_id")
12
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
13
+ val id: Long,
14
15
+ @Column(name = "title")
16
+ val title: String,
17
18
+ @Column(name = "content", length = 10000)
19
+ val content: String,
20
21
+ @Column(name = "imageUrl")
22
+ val imageUrl: String,
23
+)
0 commit comments