From cbb6b3820be4c7a8262bad18e49d035aadb79738 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Mon, 11 Oct 2021 13:13:53 -0500 Subject: [PATCH] clean-up from rebase --- .../annotations/internal/NoJavaType.java | 29 ------------------- .../annotations/internal/NoJdbcType.java | 29 ------------------- 2 files changed, 58 deletions(-) delete mode 100644 hibernate-core/src/main/java/org/hibernate/annotations/internal/NoJavaType.java delete mode 100644 hibernate-core/src/main/java/org/hibernate/annotations/internal/NoJdbcType.java diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/internal/NoJavaType.java b/hibernate-core/src/main/java/org/hibernate/annotations/internal/NoJavaType.java deleted file mode 100644 index 5886945460..0000000000 --- a/hibernate-core/src/main/java/org/hibernate/annotations/internal/NoJavaType.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Hibernate, Relational Persistence for Idiomatic Java - * - * License: GNU Lesser General Public License (LGPL), version 2.1 or later - * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html - */ -package org.hibernate.annotations.internal; - -import org.hibernate.type.descriptor.WrapperOptions; -import org.hibernate.type.descriptor.java.BasicJavaType; -import org.hibernate.type.descriptor.jdbc.JdbcType; -import org.hibernate.type.descriptor.jdbc.JdbcTypeDescriptorIndicators; - -public class NoJavaType implements BasicJavaType { - @Override - public JdbcType getRecommendedJdbcType(JdbcTypeDescriptorIndicators context) { - throw new UnsupportedOperationException(); - } - - @Override - public X unwrap(Void value, Class type, WrapperOptions options) { - throw new UnsupportedOperationException(); - } - - @Override - public Void wrap(X value, WrapperOptions options) { - throw new UnsupportedOperationException(); - } -} diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/internal/NoJdbcType.java b/hibernate-core/src/main/java/org/hibernate/annotations/internal/NoJdbcType.java deleted file mode 100644 index 98090c4692..0000000000 --- a/hibernate-core/src/main/java/org/hibernate/annotations/internal/NoJdbcType.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Hibernate, Relational Persistence for Idiomatic Java - * - * License: GNU Lesser General Public License (LGPL), version 2.1 or later - * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html - */ -package org.hibernate.annotations.internal; - -import org.hibernate.type.descriptor.ValueBinder; -import org.hibernate.type.descriptor.ValueExtractor; -import org.hibernate.type.descriptor.java.JavaType; -import org.hibernate.type.descriptor.jdbc.JdbcType; - -public class NoJdbcType implements JdbcType { - @Override - public int getJdbcTypeCode() { - throw new UnsupportedOperationException(); - } - - @Override - public ValueBinder getBinder(JavaType javaTypeDescriptor) { - throw new UnsupportedOperationException(); - } - - @Override - public ValueExtractor getExtractor(JavaType javaTypeDescriptor) { - throw new UnsupportedOperationException(); - } -}