File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/dialect Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 2323import org .springframework .data .convert .ReadingConverter ;
2424
2525/**
26- * Converter converting from an H2 internal representation of a timestamp with time zone to an OffsetDateTime.
27- *
28- * Only required for H2 versions < 2.0
26+ * Converter converting from an H2 internal representation of a timestamp with time zone to an OffsetDateTime. Only
27+ * required for H2 versions < 2.0
2928 *
3029 * @author Jens Schauder
3130 * @since 2.7
31+ * @deprecated This is only used for H2 1.x support which will be dropped with the next major release. Use H2Dialect
32+ * instead.
3233 */
34+ @ Deprecated
3335@ ReadingConverter
3436public enum H2TimestampWithTimeZoneToOffsetDateTimeConverter
3537 implements Converter <TimestampWithTimeZone , OffsetDateTime > {
Original file line number Diff line number Diff line change 2828 * @author Jens Schauder
2929 * @author Christoph Strobl
3030 * @since 2.3
31+ * @deprecated This is only used for H2 1.x support which will be dropped with the next major release. Use H2Dialect
32+ * instead.
3133 */
34+ @ Deprecated
3235public class JdbcH2Dialect extends H2Dialect {
3336
3437 public static JdbcH2Dialect INSTANCE = new JdbcH2Dialect ();
@@ -56,7 +59,7 @@ static boolean isH2belowVersion2() {
5659
5760 JdbcH2Dialect .class .getClassLoader ().loadClass ("org.h2.api.TimestampWithTimeZone" );
5861 return true ;
59- } catch (ClassNotFoundException e ) {
62+ } catch (ClassNotFoundException e ) {
6063 return false ;
6164 }
6265 }
You can’t perform that action at this time.
0 commit comments