add a note to Javadoc of IdGeneratorType

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-05-20 12:44:42 +02:00 committed by Steve Ebersole
parent 34924ed1f1
commit 29f205dea2
2 changed files with 5 additions and 1 deletions

View File

@ -68,6 +68,10 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* <p> * <p>
* A {@code @IdGeneratorType} annotation must have retention policy * A {@code @IdGeneratorType} annotation must have retention policy
* {@link RetentionPolicy#RUNTIME}. * {@link RetentionPolicy#RUNTIME}.
* <p>
* If a {@code Generator} may be used to generate values of non-identifier
* fields, its generator annotation should also be meta-annotated
* {@link ValueGenerationType @ValueGenerationType}.
* *
* @see Generator * @see Generator
* @see AnnotationBasedGenerator * @see AnnotationBasedGenerator

View File

@ -55,7 +55,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* the property to be generated when any SQL statement to {@code insert} or * the property to be generated when any SQL statement to {@code insert} or
* {@code update} the entity is executed. * {@code update} the entity is executed.
* <p> * <p>
* Every generator annotation type has an {@link Generator} implementation * Every generator annotation type has a {@link Generator} implementation
* which is responsible for generating values. It must be either: * which is responsible for generating values. It must be either:
* <ul> * <ul>
* <li>a {@link BeforeExecutionGenerator}, for values that are generated in * <li>a {@link BeforeExecutionGenerator}, for values that are generated in