Skip to content

Releases: ydb-platform/yoj-project

YOJ 2.5.13 (backport 2.6.6 changes except for refactorings)

YOJ 2.6.6 (In the Fog)

11 Feb 14:15
Compare
Choose a tag to compare

Features:

  • #121: Support preferable location for connections
  • #119: Support predefined consumers for CDC topics
  • #117: More consistent column naming for subobject fields
    Now you can specify whether the @Column(name="...") for a subobject column means absolute column name (mySubColumn) or a name relative to subobject column name (subobject_mySubColumn). Use the new @Column(columnNaming=...) attribute for this.
    ⚠️ Future proofing: The default legacy behavior ("subobject fields with custom column names set have absolute names; otherwise subobject column names are relative") is kept in YOJ 2.x, but at least the default will be changed in YOJ 3.x to ColumnNaming.RELATIVE. You will be notified about this via a WARNing logged by the standard DeprecationWarnings.warnOnce() mechanism.

Bugfixes:

Refactoring:

  • noticket: Minor YqlStatementPart cleanup
    We cleaned up YqlStatementPart and its subclasses, and also a little bit of YqlStatement code generation logic.
    • Only YqlPredicate had meaningful (and usable) implementation of YqlStatementPart.combine(List<YqlStatementPart>), only this implementation was kept; YqlStatementPart.combine() now throws UnsupportedOperationByDefault.
    • We found out that YqlOrderBy.combine() implementation was incorrect since at least the initial YOJ commit: it did not use this.sortKeys so a part of ordering was disregarded, and also did not try to de-duplicate sort keys when combining multiple YqlOrderBy statement parts. Now YqlOrderBy.combine() just throws UnsupportedOperationException, to detect inadvertent users of this misfeature.
      ⚠️ Minor breakage: If your code relied on the (strange and undocumented) behavior of YqlOrderBy.combine(), it now will fail outright, with an UnsupportedOperationException.
    • Deprecated the confusingly-named (not POJO-style) YqlLimit.size() and YqlView.index(). Please explicitly use [new] POJO-style getters: YqlLimit.getLimit(), YqlLimit.getOffset(), YqlView.getIndex().
      ⚠️ Future proofing: YqlLimit.size() and YqlView.index() are deprecated for removal; they will be removed in YOJ 3.0. You will be notified about this via a WARNing logged by the standard DeprecationWarnings.warnOnce() mechanism.
    • Deprecated YqlStatement.mergeParts() getting a Stream, replaced it by a variant of YqlStatement.mergeParts() getting a Collection.
      ⚠️ Future proofing: Migrate your custom YqlStatement implementations to use YqlStatement.mergeParts(Collection<YqlStatementPart>). You will be notified about this via a WARNing logged by the standard DeprecationWarnings.warnOnce() mechanism.

YOJ 2.6.5 (Multiple table names for the same Entity)

27 Dec 21:36
Compare
Choose a tag to compare
  • #32: Support multiple table names for the same Entity
    ⚠️ This is an Experimental API, which can change and/or disappear in any release.
    Use the new BaseDb.table(TableDescriptor) call in your Db to specify both Entity class and table name; the same is also supported by the new AbstractDelegatingTable(TableDescriptor) constructor.

YOJ 2.6.4 (improved logging for GRPC transport problems)

12 Dec 12:16
Compare
Choose a tag to compare
  • #109: Use YDB Java SDK v2.3.7, with improved logging for GRPC transport problems

YOJ 2.5.12 (backport improved logging for GRPC transport problems)

12 Dec 12:16
Compare
Choose a tag to compare

Backport #109 to 2.5.x

  • #109: Use YDB Java SDK v2.3.7, with improved logging for GRPC transport problems

YOJ 2.6.3 (bring back some deprecated YqlStatement ctors)

06 Dec 13:53
Compare
Choose a tag to compare
  • #108: Bring back (as @Deprecated(forRemoval=true)) old ctors for MultipleVarsYqlStatement, PredicateStatement and YqlStatement

YOJ 2.6.2 (TableDescriptor refactorings)

06 Dec 12:05
Compare
Choose a tag to compare
  • #32: TableDescriptor and related refactorings to make supporting multiple YDB tables under one YOJ Entity
  • #95: Fix ClassCastException during initial schema check

YOJ 2.5.11 (backport TableDescriptor from 2.6.3)

06 Dec 15:34
Compare
Choose a tag to compare

Backport of v2.6.3, excluding FieldValue refactorings from v2.6.0.

YOJ 2.5.10 (Fix ClassCastException during initial schema check)

26 Nov 12:26
Compare
Choose a tag to compare

Backported to 2.5.x:

  • #95 Fix ClassCastException during initial schema check

YOJ 2.6.1 (StdTxManager.useNewTxNameGeneration always enabled now)

04 Nov 16:30
Compare
Choose a tag to compare
  • ca389b2 - StdTxManager.useNewTxNameGeneration field now does nothing and is deprecated for removal. It will be removed in YOJ 3.0.0.