persistence icon indicating copy to clipboard operation
persistence copied to clipboard

Support Java 21 sequenced collections

Open beikov opened this issue 1 year ago • 3 comments

Since Jakarta EE 11 bumps the Java requirement to 21, Jakarta Persistence should IMO do so as well. If time permits, it should IMO also add support for the new sequenced collection interfaces:

  • SequencedCollection
  • SequencedSet
  • SequencedMap

These types should be supported collection types which are useful when using @OrderBy("some_column").

beikov avatar Jan 04 '24 10:01 beikov

Since Jakarta EE 11 bumps the Java requirement to 21

this may be not true in the end eventually, there is a wish to stick with 17 and it is likely there will be some voting about it in the near future.

In any case, from the persistence spec - and my - point of view:

  • in 3.2 - we want to allow vendors to support SE 17 without the need for multi-release jar overhead
  • in 3.2.NEXT - bump to SE 21+ and add explicit support for SequencedCollections

WDYT?

lukasj avatar Jan 26 '24 12:01 lukasj

Sounds good to me. I just wanted to propose an actually useful feature that requires Java 21 if Jakarta Persistence were to bump to that version.

beikov avatar Jan 29 '24 10:01 beikov