File tree Expand file tree Collapse file tree 3 files changed +6
-18
lines changed
spring-graphql/src/main/java/org/springframework/graphql/data/method/annotation Expand file tree Collapse file tree 3 files changed +6
-18
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2021 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
28
28
* shortcut for {@link SchemaMapping @SchemaMapping} with
29
29
* {@code typeName="Mutation"}.
30
30
*
31
- * <p>You can use this annotation both at the method and at the class level, in
32
- * which case all handlers methods in the controller are mutations, unless the
33
- * typeName is overridden.
34
- *
35
31
* @author Rossen Stoyanchev
36
32
* @since 1.0.0
37
33
*/
38
- @ Target ({ ElementType .TYPE , ElementType . METHOD } )
34
+ @ Target (ElementType .METHOD )
39
35
@ Retention (RetentionPolicy .RUNTIME )
40
36
@ Documented
41
37
@ SchemaMapping (typeName = "Mutation" )
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2021 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
28
28
* shortcut for {@link SchemaMapping @SchemaMapping} with
29
29
* {@code typeName="Query"}.
30
30
*
31
- * <p>You can use this annotation both at the method and at the class level, in
32
- * which case all handlers methods in the controller are queries, unless the
33
- * typeName is overridden.
34
- *
35
31
* @author Rossen Stoyanchev
36
32
* @since 1.0.0
37
33
*/
38
- @ Target ({ ElementType .TYPE , ElementType . METHOD } )
34
+ @ Target (ElementType .METHOD )
39
35
@ Retention (RetentionPolicy .RUNTIME )
40
36
@ Documented
41
37
@ SchemaMapping (typeName = "Query" )
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2021 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
28
28
* shortcut for {@link SchemaMapping @SchemaMapping} with
29
29
* {@code typeName="Subscription"}.
30
30
*
31
- * <p>You can use this annotation both at the method and at the class level, in
32
- * which case all handlers methods in the controller are subscriptions, unless the
33
- * typeName is overridden.
34
- *
35
31
* @author Rossen Stoyanchev
36
32
* @since 1.0.0
37
33
*/
38
- @ Target ({ ElementType .TYPE , ElementType . METHOD } )
34
+ @ Target (ElementType .METHOD )
39
35
@ Retention (RetentionPolicy .RUNTIME )
40
36
@ Documented
41
37
@ SchemaMapping (typeName = "Subscription" )
You can’t perform that action at this time.
0 commit comments