Shortcut annotations target method level only again

Closes gh-290
This commit is contained in:
rstoyanchev
2022-02-17 12:32:18 +00:00
parent 937c265091
commit 1f9afa9be5
3 changed files with 6 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2021 the original author or authors.
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,14 +28,10 @@ import org.springframework.core.annotation.AliasFor;
* shortcut for {@link SchemaMapping @SchemaMapping} with
* {@code typeName="Mutation"}.
*
* <p>You can use this annotation both at the method and at the class level, in
* which case all handlers methods in the controller are mutations, unless the
* typeName is overridden.
*
* @author Rossen Stoyanchev
* @since 1.0.0
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@SchemaMapping(typeName = "Mutation")

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2021 the original author or authors.
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,14 +28,10 @@ import org.springframework.core.annotation.AliasFor;
* shortcut for {@link SchemaMapping @SchemaMapping} with
* {@code typeName="Query"}.
*
* <p>You can use this annotation both at the method and at the class level, in
* which case all handlers methods in the controller are queries, unless the
* typeName is overridden.
*
* @author Rossen Stoyanchev
* @since 1.0.0
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@SchemaMapping(typeName = "Query")

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2021 the original author or authors.
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,14 +28,10 @@ import org.springframework.core.annotation.AliasFor;
* shortcut for {@link SchemaMapping @SchemaMapping} with
* {@code typeName="Subscription"}.
*
* <p>You can use this annotation both at the method and at the class level, in
* which case all handlers methods in the controller are subscriptions, unless the
* typeName is overridden.
*
* @author Rossen Stoyanchev
* @since 1.0.0
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@SchemaMapping(typeName = "Subscription")