-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
quarkus-hibernate-orm entity manager merge of detached entity does not work #2815
Comments
@waldimiro could you create a reproducer? |
@gsmet I have a simple multi module scenario where: module-1 module-2 |
@waldimiro a simple reproducer would help. It shouldn't take you too much time. |
We had several reports of this. We should try to investigate. |
This might be related to this issue: #3127 . |
@dreab8 could you add a test for this? |
Hi @waldimiro, |
Hi @dreab8 Thank you for your time. The differences are: model module -- there are no application.properties, persistence properties are declared in service. service module |
mhh I ask me if it is related to #2918, please read my last comment. |
@waldimiro I don't think we will be able to make progress on this this way. Could you create a simple reproducer so that we can clearly see what's going wrong. It shouldn't be too hard and it would help us a lot. Thanks. |
Please open another issue with a full reproducer if you end up having one. |
Reopening, we crafted a reproducer in ORM. We're working on this. |
@Sanne any update on this ? |
It's very complex but at last week's meeting we brainstormed this. I think I know now what we should do, but will need the time to explore further. Described as: |
So there's not other way to merge entire entity collections? |
@Sanne Even with the latest Quarkus 2.3 it is still not possible to reliably set fields back to null with em.merge() when the entity is detached. I am a little disappointed of my favorite framework that after more than one and a half year passing by, there is still no fix. In my opinion merging detached entities is not an edge case that could be ignored. Looking forward to a solution. |
any update related to this merge issue? We're facing the same issue? |
FWIW this seems to relate to https://hibernate.atlassian.net/browse/HHH-17761, which was fixed in Hibernate ORM 6.5 and thus should be fixed when we upgrade to that version in Quarkus (PR incoming). |
With quarkus-hibernate-orm extension, entityManager.merge(entity) for a detached entity in a transactional method does not work. Entity will not be updated.
The text was updated successfully, but these errors were encountered: