On 10/6/09 7:57 PM, Andrey Razumovsky wrote:
cvc-complex-type.2.4.b: The content of element 'obj-entity' is not complete.
One of '{"http://cayenne.apache.org/schema/3.0/modelMap":pre-persist}' is
expected.
I see the problem. I'm a bit surprised this fell through the unit tests, but it looks like this
is the issue within <xs:element name="obj-entity">
<xs:sequence minOccurs="0">
<xs:element ref="cay:entity-listener"/>
<xs:element ref="cay:pre-persist"/>
<xs:element ref="cay:post-persist"/>
<xs:element ref="cay:pre-update"/>
<xs:element ref="cay:post-update"/>
<xs:element ref="cay:pre-remove"/>
<xs:element ref="cay:post-remove"/>
<xs:element ref="cay:post-load"/>
</xs:sequence>
That should be just
<xs:element minOccurs="0" maxOccurs="unbounded" ref="cay:entity-listener"/>
I have to head home now, but I'll sort that out tonight and run some more
tests. If you try making a local copy of the xsd with that change and point
your schemaLocation to it, do your problems go away?
Regards
Ari Maniatis