Skip to content

YOJ 2.0.0 (DbType API Change)

Choose a tag to compare

@nvamelichev nvamelichev released this 15 Feb 22:17
· 379 commits to main since this release

BREAKING CHANGE: DbType

  • DbType is now an enum, not an interface with String constants for YDB column data types.
    It is also in a different package and a different module than before: tech.ydb.yoj.repository.ydbtech.ydb.yoj.databind, yoj-repository-ydb-commonyoj-databind.
  • @Column annotation uses the updated DbType for its dbType parameter, not a String value.
  • This is a semi-source-compatible change: constant names have not been changed, so you adjusting your dependencies and change the package in your imports is probably enough.
    If you used DbType constants' string values outside of the @Column(dbType=...) annotation, you will now need to explicitly call DbType.typeString() to get enum constant as a String.