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

copy information from module-info to spec #645

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

gavinking
Copy link
Contributor

The information about Query by Method Name return types should be in the spec (by value, not by reference).

I have also taken the liberty to remove some weird statements about Jakarta Persistence being limited to Integer.MAX_VALUE. To be clear, the type of the count() function in JPQL is long.

also remove some weird statements about Jakarta Persistence being limited to int
@@ -636,15 +636,15 @@
* <tr style="vertical-align: top; background-color:#eee"><td>{@code countBy...}</td>
* <td>{@code long},
* <br>{@code int}</td>
* <td>Jakarta Persistence providers limit the maximum to {@code Integer.MAX_VALUE}</td></tr>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know I wrote these statements at one point, and I thought I remember doing so in response to limitations that I found in the Jakarta Persistence spec but I cannot find it now, and in any case, it doesn't make any sense to me why the language was on methods that are returning counts rather than find methods that return lists of results, which seems the more likely place to encounter limits.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right, well it's true that a Java List or array can only have MAX_INTEGER elements, but that's not specific to Jakarta Persistence. Anyway, that many entities in memory will definitely blow up your computer.

@otaviojava otaviojava merged commit 0587116 into jakartaee:main Apr 4, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants