Exception when saving a one-to-many gui table

Hi. I have an entiry defined as:


@OneToMany(mappedBy = "strategy")
    @OnDelete(DeletePolicy.CASCADE)
    @Composition
    protected List<StrategySession> sessions;

And a Web page where I edit strategies and add session to a gui table (sessions). It works fine as long as I don remove any sessions previously added. When I do remove a session and click OK button I get:


IllegalStateException: Cannot get unfetched attribute [account] from detached object XGUI0010.

StrategySession has one-to-one relation with Session, which has a one-to-one relation with Account

Why is it complaining of an attribute only when I romve the item from StrateySession?

André

Hi Andre,

What platform version do you use?

platform-6.3.4

It can be a bug in the cascade delete processing. Could you provide a test project where the problem is reproduced?