Skip to content

Commit d8fb9d2

Browse files
committed
Use MultiInsertAnnot constants in the MultiInsertAnnot processing
1 parent 9241465 commit d8fb9d2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doma-processor/src/main/java/org/seasar/doma/internal/apt/annot/Annotations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public InsertAnnot newInsertAnnot(AnnotationMirror annotation) {
329329
*/
330330
public MultiInsertAnnot newMultiInsertAnnot(AnnotationMirror annotation) {
331331
assertNotNull(annotation);
332-
ReturningAnnot returningAnnot = newReturningAnnot(annotation, ModifyAnnot.RETURNING);
332+
ReturningAnnot returningAnnot = newReturningAnnot(annotation, MultiInsertAnnot.RETURNING);
333333
Map<String, AnnotationValue> valuesWithDefaults =
334334
ctx.getMoreElements().getValuesWithDefaults(annotation);
335335
return new MultiInsertAnnot(annotation, returningAnnot, valuesWithDefaults);

doma-processor/src/main/java/org/seasar/doma/internal/apt/annot/MultiInsertAnnot.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class MultiInsertAnnot extends AbstractAnnot {
3535
private static final String SQL_LOG = "sqlLog";
3636
private static final String DUPLICATE_KEY_TYPE = "duplicateKeyType";
3737
private static final String DUPLICATE_KEYS = "duplicateKeys";
38+
static final String RETURNING = "returning";
3839

3940
private final AnnotationValue queryTimeout;
4041
private final AnnotationValue include;

0 commit comments

Comments
 (0)