| Teneo: Storing null in EAV schema [message #496955] |
Wed, 11 November 2009 15:46  |
Eclipse User |
|
|
|
When using Teneo with EAV schema, I seem to be unable to store an EObject if the value for one of its EStructuralFeature's is null. I get the following exception:
org.hibernate.PropertyValueException: not-null property references a null or transient value: EAVSingleEAttributeValueHolder.mandatoryValue
I tried to make the property nullable by adding an annotation to the XSD from which the ecore model is created, eg.
<xsd:element name="Number" type="xsd:integer">
<xsd:annotation>
<xsd:appinfo source="teneo.jpa">@Column(name="Number",nullable="true ")</xsd:appinfo>
</xsd:annotation>
</xsd:element>
However, this does not fix the problem. Does anyone know how to make this work?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03151 seconds