Hello,
We have view entity which have composite embeddedId key.
@EmbeddedId
@AttributeOverrides({
@AttributeOverride(name = "pnlId", column = @Column(name = "PNL_ID")),
@AttributeOverride(name = "personId", column = @Column(name = "PERSON_ID"))
})
private RelatedPersonViewCompKey id;
Our purpose is to use it on table with view action for another Screen
Example
<table id="relatedLegalPersons"
<actions>
<action id="view" type="view" caption="msg://pnlBrowse.viewAction">
<properties>
<property name="openMode" value="NEW_TAB"/>
<property name="screenClass"
value="com.fsc.internal.portal.screen.pnl.PnlView"/>
</properties>
</action>
</actions>
</table>
But when we select an item we are recieving
Caused by: java.lang.IllegalArgumentException: You have attempted to set a value of type class com.fsc.common.addon.entity.view.relatedpersons.key.RelatedPersonViewCompKey for parameter entityId with expected type of class java.lang.Long from query string select e from Pnl e where e.id = :entityId
Keep in mind that PnlView screen can be invoked from another screens.
Is there a way that I can thell which Id to use from the CompositeKey in the query.
Best Regards,
Dzhuliyan Ovcharov