CompKey Error in generated code?

Attached you find a simple application
We have a catalog for different countries.
In each country it is possible to sell cars of different type, color. ( composition of catalog ).

  • I can edit type from the type-detail-view
  • If I want to edit type called from the catalog ( which is the parent ) i get the following error
    grafik

What is wrong here ?

Thank you for your help.
Felix
CompKey.zip (1.0 MB)

Hi Felix,

Unfortunately I couldn’t find a solution except replacing the composite key with a regular single-column key in the Type nested entity.

Created issue: Error editing composition when item has composite key · Issue #4280 · jmix-framework/jmix · GitHub

Regards,
Konstantin

Hi Konstantin

I could not believe it, because this is running in my application.

Attached you find the same program, but with JMix 2.4.2 and all is running perfectly !!!

Already with JMix 2.4.4 problems started; if you wanted to edit a Type, there was the same errormessage, but data where saved.

Now with JMix 2.5 it is gone.

Very strange. I did loose the whole day just trying to find this out. My problem now is, that I have to downgrade anything to 2.4.2. But if I take the version from the 2.4.2 days, other changes are not present anymore …

Do you think, there will be soon a release, where this CompositeKey is working again ?

Regards
Felix

Here the version which is flawless working with JMix 2.4.2
CompKey242.zip (1.0 MB)

Here the version which starts to display errors on editing an existing type with JMix 2.4.4
CompKey24.zip (1.0 MB)

1 Like

Hi Felix,

Thank you for the investigation. We are currently working on the patch 2.5.1 and we’ll try to find the cause and fix it in this upcoming release.

1 Like

Hi Konstantin
I know, the reply will not be easy; any timeframe ? 1 day, 1 week, 1 month ?
I went back in the development to 28.2.2025 … and have to reapply the changes ;/