Skip to content

YOJ 2.7.0 (API Cleanup)

Choose a tag to compare

@nvamelichev nvamelichev released this 01 Dec 14:16
· 40 commits to main since this release

Breaking API Changes

Breaking - Signature Change

  • Require T extends Entity<T> for ListRequest<T> and GenericListResult<T, R>
  • @YojTransactional.noRollbackFor: Allow some exceptions that don't cause a rollback

Breaking - APIs Permanently Removed

  • new RepositoryCache.Key(Class, Object)
  • RepositoryCache.Key.getClazz()
  • EntityIdSchema.SORT_ENTITY_BY_ID
  • EntityIdSchema.getIdComparator(Class)
  • InMemoryQueries.find(StreamSupplier, FilterExpression, OrderExpression, Integer, Long)

API Removal Rescheduled to 2.8.0

  • InMemoryTable.DbMemory
  • InMemoryRepositoryTransaction.getMemory(Class)

Legacy Behavior Removal Rescheduled to 3.0.0

  • EnumSerializer.LENIENT being the default

Dependency Updates

Experimental API Improvements

#192: Improved Experimental API for ordering table queries and listings by index

  • New naming and new enum type (instead of orderByIndex/unorderedByIndex):
    TableQueryBuilder.index("index name", IndexOrder.{UNORDERED|ASCENDING|DESCENDING});
  • New naming (instead of [with]OrderByIndex):
    • ListRequest.withIndex("index name", SortOrder.{ASCENDING|DESCENDING});
    • ListRequest.Builder.index("index name", SortOrder.{ASCENDING|DESCENDING});