[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[eclipselink-users] embedded objects with null values / second try
|
we
encounter problems with embeddables.
Lets
say we have this class Purchase like in EL test suite: a class with an
embedabble which itself contains a relation (currency).
column=@Column(name="FEE_AMOUNT", nullable=true))
joinColumns=@JoinColumn(name="FEE_ID", nullable=true)))
public void setFee(Money fee) {
…
In
our use cases, we create Purchase with the embedded money = null (business
logic says we add price later…). This should be legal because we defined all
contained attributes as nullable. But we get an exception:
Exception
[EclipseLink-68] (Eclipse Persistence Services - 2.1.2.v20101206-r8635):
org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The value of an aggregate in object [anObject] is
null. Null values not allowed for Aggregate mappings unless "Allow
Null" is specified.
How
can we get things working?
Thanks
in advance, Markus
|
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users