HHH-14935 Revert deprecation of org.hibernate.annotations.Type, TypeDef and TypeDefs

This commit is contained in:
Sanne Grinovero 2021-12-15 20:31:57 +00:00
parent ab808954a2
commit 8d1027f967
3 changed files with 0 additions and 9 deletions

View File

@ -24,12 +24,9 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author Emmanuel Bernard
* @author Steve Ebersole
*
* @deprecated 6.0 will introduce a new type-safe {@code CustomType} annotation
*/
@Target({FIELD, METHOD})
@Retention(RUNTIME)
@Deprecated
public @interface Type {
/**
* The Hibernate type name. Usually the fully qualified name of an implementation class for

View File

@ -28,13 +28,10 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author Emmanuel Bernard
* @author Steve Ebersole
*
* @deprecated 6.0 will introduce a new series of type-safe annotations to serve the same purpose
*/
@Target({TYPE, PACKAGE})
@Retention(RUNTIME)
@Repeatable(TypeDefs.class)
@Deprecated
public @interface TypeDef {
/**
* The type name. This is the name that would be used in other locations.

View File

@ -18,12 +18,9 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author Emmanuel Bernard
* @author Steve Ebersole
*
* @deprecated 6.0 will introduce a new series of type-safe annotations to serve the same purpose
*/
@Target({TYPE, PACKAGE})
@Retention(RUNTIME)
@Deprecated
public @interface TypeDefs {
/**
* The grouping of type definitions.