-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/maven/org.openrewrite.maven-rew…
…rite-maven-plugin-5.46.3
- Loading branch information
Showing
5 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
12 changes: 11 additions & 1 deletion
12
...dsl-examples/querydsl-example-ksp-codegen/src/main/kotlin/com/querydsl/example/ksp/Cat.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 |
---|---|---|
@@ -1,12 +1,22 @@ | ||
package com.querydsl.example.ksp | ||
|
||
import jakarta.persistence.Entity | ||
import jakarta.persistence.Enumerated | ||
import jakarta.persistence.EnumType | ||
import jakarta.persistence.Id | ||
import jakarta.persistence.ManyToOne | ||
|
||
@Entity | ||
class Cat( | ||
@Id | ||
val id: Int, | ||
val name: String, | ||
val isTailUpright: Boolean | ||
val isTailUpright: Boolean, | ||
val fluffiness: String? = null, | ||
|
||
@ManyToOne | ||
val owner: Person? = null, | ||
|
||
@Enumerated(EnumType.STRING) | ||
val catType: CatType? = CatType.HOUSE, | ||
) |
6 changes: 6 additions & 0 deletions
6
...examples/querydsl-example-ksp-codegen/src/main/kotlin/com/querydsl/example/ksp/CatType.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,6 @@ | ||
package com.querydsl.example.ksp | ||
|
||
enum class CatType { | ||
HOUSE, | ||
MAINE_COON | ||
} |
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