Skip to content

Commit a978a63

Browse files
committed
annotate generated classes with @generated
1 parent 9acdd48 commit a978a63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

querydsl-tooling/querydsl-ksp-codegen/src/main/kotlin/com/querydsl/ksp/codegen/QueryModelRenderer.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.querydsl.ksp.codegen
22

3+
import com.querydsl.core.annotations.Generated
34
import com.querydsl.core.types.ConstructorExpression
45
import com.querydsl.core.types.Path
56
import com.querydsl.core.types.PathMetadata
@@ -16,6 +17,7 @@ object QueryModelRenderer {
1617
.setPrimaryConstructor(model)
1718
.setEntitySuperclass(model)
1819
.addSuperConstructorParameter(model)
20+
.addAnnotation(Generated::class)
1921
.build()
2022

2123
else -> TypeSpec.classBuilder(model.className)
@@ -28,6 +30,7 @@ object QueryModelRenderer {
2830
.constructorForTypeMetadata(model)
2931
.addInitializerCompanionObject(model)
3032
.addInheritedProperties(model)
33+
.addAnnotation(Generated::class)
3134
.build()
3235
}
3336
}

0 commit comments

Comments
 (0)