Skip to content

Commit e577e11

Browse files
committed
deprecate DynamicParameterizedType
This was incompletely implemented, features very inelegant naming, and isn't actually type-safe. It was contributed by a user long ago and the truth is I probably shouldn't have accepted the contribution.
1 parent 690d1c5 commit e577e11

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hibernate-core/src/main/java/org/hibernate/usertype/DynamicParameterizedType.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
*
1919
* @author Janario Oliveira
2020
* @author Yanming Zhou
21+
*
22+
* @deprecated This very old approach was never properly implemented in all
23+
* contexts, and never actually achieved the type safety it aimed for. Just
24+
* use {@link ParameterizedType} for now.
2125
*/
26+
@Deprecated(since = "7.0", forRemoval = true)
2227
public interface DynamicParameterizedType extends ParameterizedType {
2328
String PARAMETER_TYPE = "org.hibernate.type.ParameterType";
2429

0 commit comments

Comments
 (0)