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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support updatable collections in embeddables #597

Closed
beikov opened this issue Jul 10, 2018 · 1 comment

Comments

@beikov
Copy link
Member

commented Jul 10, 2018

Description

Giovanni Lovato is pushing the boundaries again 馃榿
Using an updatable collection/map in an updatable flat view fails with weird exceptions. Query flushing doesn't fall back to entity flushing for that collection as it should and when configuring entity flushing, the produced JPQL for the fetching of dirty attributes is messed up.
This will be a Hibernate only thing again since collections in embeddables are only support by Hibernate as far as I know.

Expected behavior

Actual behavior

Steps to reproduce

Environment

Version:
JPA-Provider:
DBMS:
Application Server:

@beikov beikov added this to the 1.3.0 milestone Jul 10, 2018

@beikov beikov self-assigned this Jul 10, 2018

@heruan

This comment has been minimized.

Copy link
Collaborator

commented Jul 10, 2018

I don't know if it's just Hibernate supporting this, but the spec just states in 搂2.6 that an embeddable contained in a collection must not contain a collection itself:

An embeddable class (including an embeddable class within another embeddable class) that is contained within an element collection must not contain an element collection.

But of course each provider can have its own take on what the spec omits 馃槂

beikov added a commit to beikov/blaze-persistence that referenced this issue Jul 19, 2018
[Blazebit#597] Implemented support for updatable collections in embed鈥
鈥ables and fixed some small issues with embeddables. Fixes Blazebit#597
beikov added a commit to beikov/blaze-persistence that referenced this issue Jul 19, 2018
[Blazebit#597] Implemented support for updatable collections in embed鈥
鈥ables and fixed some small issues with embeddables. Fixes Blazebit#597

@beikov beikov closed this in 7170d91 Jul 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can鈥檛 perform that action at this time.