[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] PROGRESS: Sv: Re: Value of DiscriminatorValue not persisted
|
Do you have any mappings to EmailPart in your object model? Any cascade settings?
Can you send the call stack up to the persist? And/or turn the logging to finest and send that info as well?
Yes, I have lots of mappings to the abstract EmailPart, both @OneToMany and @ManyToOne, as an EmailMessage can contain a list of artibrary parts, which again may have children, and parent).
I have 2 cascade-mappings:
One in EmailMessage, which refers to it's root-parts:
@OneToMany(cascade = Array(CascadeType.ALL), mappedBy = "message", orphanRemoval = true)
@OrderBy("index")
var rootPartList: JUList[EmailPart] = new JUArrayList[EmailPart]()
And one in EmailPart, which refers to it's children:
@OneToMany(cascade = Array(CascadeType.ALL), mappedBy = "parent", orphanRemoval = true)
@OrderBy("index")
var children: JUList[EmailPart] = new JUArrayList[EmailPart]()
I will send you the logg-output off-list, OK?
--
Andreas Joseph Krogh <andreak@xxxxxxxxxxxx> mob: +47 909 56 963
Senior Software Developer / CTO - OfficeNet AS - http://www.officenet.no
Public key: http://home.officenet.no/~andreak/public_key.asc