-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: KotlinDataClassComponent ignored
@Column(flatten=false)
annota…
…tion on data class properties Fixes #16
- Loading branch information
1 parent
d6dd53e
commit b2cd742
Showing
10 changed files
with
81 additions
and
59 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
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
6 changes: 6 additions & 0 deletions
6
repository/src/test/java/tech/ydb/yoj/repository/hybrid/AccountSnapshotMetadata.java
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,6 @@ | ||
package tech.ydb.yoj.repository.hybrid; | ||
|
||
import java.time.Instant; | ||
|
||
public record AccountSnapshotMetadata(Instant at, String description) { | ||
} |
15 changes: 0 additions & 15 deletions
15
repository/src/test/java/tech/ydb/yoj/repository/hybrid/ChangeMetadata.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
repository/src/test/java/tech/ydb/yoj/repository/hybrid/Chronology.java
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
repository/src/test/java/tech/ydb/yoj/repository/hybrid/JobArgs.java
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,4 @@ | ||
package tech.ydb.yoj.repository.hybrid; | ||
|
||
public record JobArgs(Object request) { | ||
} |
7 changes: 3 additions & 4 deletions
7
repository/src/test/kotlin/tech/ydb/yoj/repository/hybrid/Account.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
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
repository/src/test/kotlin/tech/ydb/yoj/repository/hybrid/Job.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 tech.ydb.yoj.repository.hybrid | ||
|
||
import tech.ydb.yoj.databind.schema.Column | ||
import tech.ydb.yoj.repository.db.Entity | ||
|
||
data class Job( | ||
private val id: Id, | ||
@Column(flatten = false) val args: JobArgs?, | ||
) : Entity<Job> { | ||
override fun getId() = id | ||
|
||
data class Id(val value: String) : Entity.Id<Job> | ||
} |