Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Java 21 sequenced collections #565

Open
beikov opened this issue Jan 4, 2024 · 3 comments
Open

Support Java 21 sequenced collections #565

beikov opened this issue Jan 4, 2024 · 3 comments
Labels
candidate-for-4 Good candidate for JPA 4

Comments

@beikov
Copy link

beikov commented Jan 4, 2024

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").

@lukasj
Copy link
Contributor

lukasj commented Jan 26, 2024

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?

@beikov
Copy link
Author

beikov commented Jan 29, 2024

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.

@lukasj lukasj added the candidate-for-4 Good candidate for JPA 4 label Sep 20, 2024
@lukasj
Copy link
Contributor

lukasj commented Sep 20, 2024

4.0 is going to require 21, time to revisit this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
candidate-for-4 Good candidate for JPA 4
Projects
None yet
Development

No branches or pull requests

2 participants