Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: Betr.: Re: [eclipselink-users] Strange persistence layer behaviour

Willem Kunkels a écrit :

Well, the mappins have indeed been specified on both sides of the relationship...the LetterOfCreditGoederenOmsRegel entity contains the following:

    @ManyToOne(cascade=CascadeType./REFRESH/, fetch = FetchType./LAZY/)
    @JoinColumns({
@JoinColumn(name = "LIVLG", referencedColumnName = "LIVLG", insertable = *false*, updatable = *false*), @JoinColumn(name = "IKONR", referencedColumnName = "IKONR", insertable = *false*, updatable = *false*), @JoinColumn(name = "IKRNR", referencedColumnName = "IKRNR", insertable = *false*, updatable = *false*) })
    *private* LetterOfCreditGoederenOms goederenOms;

    *public* LetterOfCreditGoederenOms getGoederenOms() {
        *return* goederenOms;
    }

So, still puzzled by this..

Hi Willem,

Your relations looks ok to me, but when you modify an instance of this, and it has an impact on the relationship, both sides of the relationship need to be updated.

Yannick


Back to the top