Class AbstractGeneratePojoMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.graphql_java_generator.mavenplugin.AbstractCommonMojo
com.graphql_java_generator.mavenplugin.AbstractGenerateCodeCommonMojo
com.graphql_java_generator.mavenplugin.AbstractGenerateServerCodeMojo
com.graphql_java_generator.mavenplugin.AbstractGraphQLMojo
com.graphql_java_generator.mavenplugin.AbstractGeneratePojoMojo
- All Implemented Interfaces:
CommonConfiguration,GenerateClientCodeConfiguration,GenerateCodeCommonConfiguration,GeneratePojoConfiguration,GenerateServerCodeConfiguration,GraphQLConfiguration,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
GeneratePojoMojo
public abstract class AbstractGeneratePojoMojo extends AbstractGraphQLMojo implements GeneratePojoConfiguration
-
Field Summary
Fields Modifier and Type Field Description java.lang.BooleangenerateJacksonAnnotationsThe Jackson annotations are necessary to properly deserialize the json, that is incoming from the GraphQL Server.Fields inherited from class com.graphql_java_generator.mavenplugin.AbstractGenerateServerCodeMojo
generateBatchLoaderEnvironment, javaTypeForIDTypeFields inherited from class com.graphql_java_generator.mavenplugin.AbstractCommonMojo
buildContext, ctx, enumPrefix, enumSuffix, inputPrefix, inputSuffix, interfacePrefix, interfaceSuffix, maxTokens, projectHelper, springConfigurationClass, typePrefix, typeSuffix, unionPrefix, unionSuffixFields inherited from interface com.graphql_java_generator.plugin.conf.CommonConfiguration
DEFAULT_ADD_RELAY_CONNECTIONS, DEFAULT_MAX_TOKENS, DEFAULT_PACKAGE_NAME, DEFAULT_PREFIX, DEFAULT_SCHEMA_FILE_FOLDER, DEFAULT_SCHEMA_FILE_PATTERN, DEFAULT_SKIP_GENERATION_IF_SCHEMA_HAS_NOT_CHANGED, DEFAULT_SUFFIXFields inherited from interface com.graphql_java_generator.plugin.conf.GenerateClientCodeConfiguration
DEFAULT_GENERATE_DEPRECATED_REQUEST_RESPONSEFields inherited from interface com.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
DEFAULT_COPY_RUNTIME_SOURCES, DEFAULT_SEPARATE_UTIL_CLASSES, DEFAULT_SOURCE_ENCODING, DEFAULT_SPRING_BEAN_SUFFIX, DEFAULT_TARGET_RESOURCE_FOLDER, DEFAULT_TARGET_SOURCE_FOLDERFields inherited from interface com.graphql_java_generator.plugin.conf.GeneratePojoConfiguration
DEFAULT_GENERATE_JACKSON_ANNOTATIONSFields inherited from interface com.graphql_java_generator.plugin.conf.GenerateServerCodeConfiguration
DEFAULT_GENERATE_BATCH_LOADER_ENVIRONMENT, DEFAULT_GENERATE_DATA_LOADER_FOR_LISTS, DEFAULT_GENERATE_JPA_ANNOTATION, DEFAULT_JAVA_TYPE_FOR_ID_TYPE, DEFAULT_SCAN_BASE_PACKAGES, DEFAULT_SCHEMA_PERSONALIZATION_FILEFields inherited from interface com.graphql_java_generator.plugin.conf.GraphQLConfiguration
DEFAULT_MODE -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractGeneratePojoMojo(java.lang.Class<?> springConfigurationClass) -
Method Summary
Modifier and Type Method Description booleanisGenerateJacksonAnnotations()Methods inherited from class com.graphql_java_generator.mavenplugin.AbstractGraphQLMojo
getMode, isGenerateDeprecatedRequestResponseMethods inherited from class com.graphql_java_generator.mavenplugin.AbstractGenerateServerCodeMojo
getJavaTypeForIDType, getPackaging, getScanBasePackages, getSchemaPersonalizationFile, isGenerateBatchLoaderEnvironment, isGenerateDataLoaderForLists, isGenerateJPAAnnotationMethods inherited from class com.graphql_java_generator.mavenplugin.AbstractGenerateCodeCommonMojo
executePostExecutionTask, getCustomScalars, getPackageName, getSourceEncoding, getSpringBeanSuffix, getTargetClassFolder, getTargetFolder, getTargetResourceFolder, getTargetSourceFolder, isAddRelayConnections, isCopyRuntimeSources, isSeparateUtilityClassesMethods inherited from class com.graphql_java_generator.mavenplugin.AbstractCommonMojo
execute, getEnumPrefix, getEnumSuffix, getInputPrefix, getInputSuffix, getInterfacePrefix, getInterfaceSuffix, getMaxTokens, getProjectDir, getSchemaFileFolder, getSchemaFilePattern, getTemplates, getTypePrefix, getTypeSuffix, getUnionPrefix, getUnionSuffix, isSkipGenerationIfSchemaHasNotChangedMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.graphql_java_generator.plugin.conf.CommonConfiguration
getDefaultTargetSchemaFileName, getEnumPrefix, getEnumSuffix, getInputPrefix, getInputSuffix, getInterfacePrefix, getInterfaceSuffix, getMaxTokens, getProjectDir, getSchemaFileFolder, getSchemaFilePattern, getTemplates, getTypePrefix, getTypeSuffix, getUnionPrefix, getUnionSuffix, isAddRelayConnections, isSkipGenerationIfSchemaHasNotChanged, logCommonConfigurationMethods inherited from interface com.graphql_java_generator.plugin.conf.GenerateClientCodeConfiguration
isGenerateDeprecatedRequestResponseMethods inherited from interface com.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
getCustomScalars, getPackageName, getSourceEncoding, getSpringAutoConfigurationPackage, getSpringBeanSuffix, getTargetClassFolder, getTargetResourceFolder, getTargetSourceFolder, isCopyRuntimeSources, logGenerateCodeCommonConfigurationMethods inherited from interface com.graphql_java_generator.plugin.conf.GeneratePojoConfiguration
getMode, isGenerateUtilityClasses, isSeparateUtilityClassesMethods inherited from interface com.graphql_java_generator.plugin.conf.GenerateServerCodeConfiguration
getJavaTypeForIDType, getPackaging, getQuotedScanBasePackages, getScanBasePackages, getSchemaPersonalizationFile, isGenerateBatchLoaderEnvironment, isGenerateDataLoaderForLists, isGenerateJPAAnnotation, logConfiguration, logGenerateServerCodeConfigurationMethods inherited from interface com.graphql_java_generator.plugin.conf.GraphQLConfiguration
logConfiguration
-
Field Details
-
generateJacksonAnnotations
@Parameter(property="com.graphql_java_generator.mavenplugin.generateJacksonAnnotations", defaultValue="") public java.lang.Boolean generateJacksonAnnotationsThe Jackson annotations are necessary to properly deserialize the json, that is incoming from the GraphQL Server. Setting this property to false allows to not generate them.
If this property is set to true, the Jackson annotations are added in the generated GraphQL objects. The Jackson dependencies must then be added to the target project, so that the project compiles.
The default value is:
- true when in client mode.
- false when in server mode.
-
-
Constructor Details
-
AbstractGeneratePojoMojo
protected AbstractGeneratePojoMojo(java.lang.Class<?> springConfigurationClass)
-
-
Method Details
-
isGenerateJacksonAnnotations
public boolean isGenerateJacksonAnnotations()- Specified by:
isGenerateJacksonAnnotationsin interfaceCommonConfiguration- Specified by:
isGenerateJacksonAnnotationsin interfaceGenerateClientCodeConfiguration- Specified by:
isGenerateJacksonAnnotationsin interfaceGeneratePojoConfiguration- Specified by:
isGenerateJacksonAnnotationsin interfaceGenerateServerCodeConfiguration- Specified by:
isGenerateJacksonAnnotationsin interfaceGraphQLConfiguration
-