Re: [jira] Resolved: (CAY-1167) Create model schema XSD

From: Andrey Razumovsky (razumovsky.andre..mail.com)
Date: Wed Jun 10 2009 - 06:58:42 EDT

  • Next message: Tore Halset: "SchemaUpdateStrategy"

    It helps, thaks!

    2009/6/10 Aristedes Maniatis <ar..aniatis.org>

    > 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
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Jun 10 2009 - 06:59:26 EDT