Re: [jira] Commented: (CAY-400) Support for user properties of DataMap objects.

From: Aristedes Maniatis (ar..sh.com.au)
Date: Tue Apr 14 2009 - 04:31:47 EDT

  • Next message: Aristedes Maniatis: "Re: [jira] Commented: (CAY-400) Support for user properties of DataMap objects."

    On 14/04/2009, at 6:19 PM, Andrus Adamchik wrote:

    > One correction... Reading Ari's comment attached to CAY-400, I
    > realized that I forgot that we also need to store it in XML, so the
    > Map will be Map<String, String>

    Ah, read this after I pressed send on my email. This leads me to think
    I'd like to get the XML schema [1] linked to the output of Cayenne
    Modeler, but I can't find anywhere in the modeler which writes out the
    XML. I assume it is buried into Cayenne core somewhere (although why?).

    I want this to go into the top of the output file:

    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://cayenne.apache.org/schema/3.0/modelMap.xsd"
    xmlns="http://cayenne.apache.org/schema/3.0/modelMap.xsd"
    elementFormDefault="qualified">

    We can then get the modeler to validate the XML with something like
    this where the SAX parser is initialised:

    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setNamespaceAware(true);
    factory.setValidating(true);

    Ari

    [1] http://cayenne.apache.org/schema/3.0/modelMap.xsd

    -------------------------->
    ish
    http://www.ish.com.au
    Level 1, 30 Wilson Street Newtown 2042 Australia
    phone +61 2 9550 5001 fax +61 2 9550 4001
    GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A



    This archive was generated by hypermail 2.0.0 : Tue Apr 14 2009 - 04:32:30 EDT