Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with null embedded object

886807Sep 7 2011 — edited Sep 13 2011
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 11 2011
Added on Sep 7 2011
1 comment
1,172 views