-
Notifications
You must be signed in to change notification settings - Fork 106
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
EAGER collections still become PersistentCollections and are mapped as persistent #122
Comments
To clarify the issue I'm having, the code that replaces the persistent collection type information with a regular collection, requires that the property pass the |
is there any progress on this issue? |
@BenDol if someone was working on this, there should be updates here, so I don't think there is or will be update unless someone has an itch. |
Why nobody fix it |
@Leenin you volunteering? |
@cowtowncoder I was thinking about picking this up because we could really use ReplacePersistentCollections to work. I was wondering if you agree that this just needs to be covered by the REPLACE_PERSISTENT_COLLECTION feature? I don't see a reason to serialize the Persistent Collection to JSON, even if it was marked as an EAGER fetch when the above feature is enabled. |
@jackoneall I do not know Hibernate well enough to say either way; but typically when changing behavior it makes sense to add a configuration option, and making it default to old behavior (but allow opt-in for new variation). But whether a new configuration option is added or not, this change should go in 2.13.0 (and not a patch release) -- If you do have time to do a PR, timing would be good as I am about to release the first (and possibly only) RC for 2.13.0. So there is time to get this change in, and available relatively quickly. |
There should be an option to assume that all
ManyToX
andOneToX
annotation markers arelazy
to avoid the issue where there are times an EAGER collection will be a PersistentCollection.For example, like so:
The text was updated successfully, but these errors were encountered: