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

Nested cross-datastore references are not saved by JPA cascade operations #4027

Open
knstvk opened this issue Dec 26, 2024 · 0 comments
Open
Labels
in: data size: M type: bug Something isn't working

Comments

@knstvk
Copy link
Contributor

knstvk commented Dec 26, 2024

Environment

Jmix version: 2.4.2

Steps To Reproduce

Add the following code to the data_stores.MultiDbDataManagerTest#testNestedCrossDatastoreEntitiesCascading method:

when:
def report1 = dataManager.load(MainReport)
        .id(report.id)
        .fetchPlan {
            it.addAll('db1OrderId', 'db1Order')
        }
        .one()

then:
report1.db1OrderId == order.id
report1.db1Order == order

The test will fail:

Condition not satisfied:

report1.db1OrderId == order.id
|       |          |  |     |
|       null       |  |     1
|                  |  test_support.entity.multidb.Db1Order-1 [detached]
|                  false
test_support.entity.multidb.MainReport-54192f61-5077-7f61-08ad-4730d7791858 [detached]
@knstvk knstvk added type: bug Something isn't working triage Issue is waiting for triage labels Dec 26, 2024
@glebfox glebfox added size: M in: data and removed triage Issue is waiting for triage labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data size: M type: bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants