[
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
|
Hello Andreas,
Can you provide the stack trace from the debugger where you noticed the
ObjectBuilder.buildRow was called on the EmailPart
ObjectBuilder/Descriptor? Short of reproducing it locally, that might
show the code path taken and point to how the wrong
objectbuilder/descriptor is getting used. If you are able to debug
further, I'd go back from that point and see how that ObjectBuilder was
looked up.
Best Regards,
Chris
On 20/08/2013 9:48 AM, Andreas Joseph Krogh wrote:
På tirsdag 20. august 2013 kl. 15:19:26, skrev Guy Pelletier
<guy.pelletier@xxxxxxxxxx <mailto:guy.pelletier@xxxxxxxxxx>>:
Do you have any mappings to EmailPart in your object model? Any
cascade settings?
Can you send the call stack upto 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
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users