On Dec 15, 2004, at 3:29 PM, Andrus Adamchik wrote:
> Hi Kevin,
>
> For the purpose of integrating your code with Cayenne, could you
> submit a
> patch against the latest HEAD? I don't remember, do we have a JIRA
> issue
> for this already?
Sure thing. There is no JIRA issue that I know of, although John may
have opened one.
>
> I am targeting the next 1.2 milestone release for mid January (as I
> already have plans for computerless holiday season). We have a number
> of
> contributions from you and others, so when I get back from the
> holidays I
> wanted to review them and commit to Cayenne if possible. Unless another
> Cayenne committer volunteers to do that earlier(?)
Sounds great.
>
> You mean XML encoding map, not Cayenne DataMap? No, Cayenne doesn't
> have
> any support for that. IIRC our latest agreement was to keep WebObjects
> format for the XML map. Am I talking about the same thing?
>
Sorry for the ambiguity. I meant java.util.Map. XMLEncoder currently
has:
/**
* Utility method that prints all map values,
* assuming they are XMLSerializable objects.
*/
public void print(Map map) {
Iterator it = map.entrySet().iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
((XMLSerializable) entry.getValue()).encodeAsXML(this);
}
}
I wanted to provide an analog using JDOM, thus my encodeMap(). The
problem is that during decoding, I can't reconstruct the above map
because I don't know what the keys are. Likewise, I don't know when
Cayenne would ever create a map like this, so I was asking if it was
just legacy code.
I am supporting the WebObjects mapping file, and this beta has that
support.
Hope that clears things up a bit.
-- Kevin
This archive was generated by hypermail 2.0.0 : Thu Dec 16 2004 - 08:23:27 EST