Class SnowflakeGeneratedIdProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
com.fayupable.snowflake.jpa.processor.SnowflakeGeneratedIdProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("com.fayupable.snowflake.jpa.SnowflakeGeneratedId")
@SupportedSourceVersion(RELEASE_21)
public class SnowflakeGeneratedIdProcessor
extends AbstractProcessor
Fails compilation when
SnowflakeGeneratedId is applied to a field or
getter whose type is not long or Long. Without this check,
a mismatched type only fails at runtime, the first time Hibernate tries to
assign the generated value to the entity.-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
-
Constructor Details
-
SnowflakeGeneratedIdProcessor
public SnowflakeGeneratedIdProcessor()
-
-
Method Details
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-