HHH-17874 deprecate @GenericGenerator
This commit is contained in:
parent
49b80f636d
commit
9362964ebd
|
@ -56,15 +56,19 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|||
* <p>
|
||||
* The disadvantage of this approach is the use of stringly-typed names. An
|
||||
* alternative, completely typesafe, way to declare a generator and associate
|
||||
* it with an entity is provided by the {@link IdGeneratorType} meta-annotation.
|
||||
* it with an entity is provided by the {@link IdGeneratorType @IdGeneratorType}
|
||||
* meta-annotation.
|
||||
*
|
||||
* @see jakarta.persistence.GeneratedValue
|
||||
*
|
||||
* @deprecated Use the new approach based on {@link IdGeneratorType}.
|
||||
*
|
||||
* @author Emmanuel Bernard
|
||||
*/
|
||||
@Target({PACKAGE, TYPE, METHOD, FIELD})
|
||||
@Retention(RUNTIME)
|
||||
@Repeatable(GenericGenerators.class)
|
||||
@Deprecated(since = "6.5")
|
||||
public @interface GenericGenerator {
|
||||
/**
|
||||
* The name of the identifier generator. This is the name that may be specified by
|
||||
|
|
|
@ -16,10 +16,13 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|||
/**
|
||||
* Array of generic generator definitions.
|
||||
*
|
||||
* @deprecated since {@link GenericGenerator} is deprecated.
|
||||
*
|
||||
* @author Paul Cowan
|
||||
*/
|
||||
@Target({PACKAGE, TYPE})
|
||||
@Retention(RUNTIME)
|
||||
@Deprecated(since = "6.5")
|
||||
public @interface GenericGenerators {
|
||||
/**
|
||||
* The aggregated generators.
|
||||
|
|
Loading…
Reference in New Issue