mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 05:04:52 +00:00
HHH-17874 deprecate @GenericGenerator
This commit is contained in:
parent
77c3744895
commit
75cbae9a7c
@ -56,15 +56,19 @@
|
||||
* <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 @@
|
||||
/**
|
||||
* 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…
x
Reference in New Issue
Block a user