Problem with null embedded object
886807Sep 7 2011 — edited Sep 13 2011Hi everybody:
First of all, I want to apologize about my english. I hope you can understand my message.
I have a problem with an embedded object in eclipselink: when application creates an object that owns an empty agregate object, appear the next error:
*"""The value of an aggregate in object [m3informatica.saint.model.Vpa7_2@c6123d[id=390403]] is null.*
*Null values not allowed for Aggregate mappings unless "Allow Null" is specified.*
*Mapping: org.eclipse.persistence.mappings.AggregateObjectMapping[procedenciaDestino]"""*
I want to allow null values for the embedded object procedenciaDestino, but i don´t know how to do this.
I read that "TopLink and EclipseLink support an embedded reference being null. This is set through using a DescriptorCustomizer and the AggregateObjectMapping setIsNullAllowed API" but I don´t know how to use that API.
Thank you for your time!
Best regards:
Javi