Url Routing issue

Hello,
When I trie to define the following route :

@UiController("ContractHistory.edit")
@UiDescriptor("contractHistory-edit.xml")
@EditedEntityContainer("contractHistoryDc")
@Route(path ="param/supplier/contrat", parentPrefix = "param/supplier")
java.lang.IllegalArgumentException: Unable to serialize id 'com.company.uniperbrmt.entity.key.ContractHistoryCompKey@3b9a50fa' of type 'class com.company.uniperbrmt.entity.key.ContractHistoryCompKey'
	at io.jmix.ui.navigation.UrlIdSerializer.serializeId(UrlIdSerializer.java:65)
	at io.jmix.ui.navigation.WebUrlRouting.buildParams(WebUrlRouting.java:267)
	at io.jmix.ui.navigation.WebUrlRouting.buildNavState(WebUrlRouting.java:158)
	at io.jmix.ui.navigation.WebUrlRouting.updateState(WebUrlRouting.java:124)
	at io.jmix.ui.navigation.WebUrlRouting.pushState(WebUrlRouting.java:90)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        ....

I got the following error and I don’t know how to resolve it, any ideas?
Regards,
Thomas

Hi!

Judging by the stacktrace: the problem is that during routing the value of the composite-key of the entity is trying to be serialized.
But UrlIdSerrializer does not support composite keys yet.

I’ve already created the issue: [UrlIdSerializer] Support composite keys · Issue #2243 · jmix-framework/jmix · GitHub

Regards,
Dmitriy