Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CF2D3B1A6 for ; Fri, 20 Jan 2012 10:08:15 +0000 (UTC) Received: (qmail 60176 invoked by uid 500); 20 Jan 2012 10:08:15 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 59994 invoked by uid 500); 20 Jan 2012 10:08:14 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 59986 invoked by uid 99); 20 Jan 2012 10:08:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2012 10:08:14 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [59.167.240.32] (HELO fish.ish.com.au) (59.167.240.32) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2012 10:08:07 +0000 Received: from ip-136.ish.com.au ([203.29.62.136]:58349) by fish.ish.com.au with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1RoBNm-0005ny-31 for user@cayenne.apache.org; Fri, 20 Jan 2012 21:07:43 +1100 X-CTCH-RefID: str=0001.0A150204.4F193CEF.0095,ss=1,re=0.000,fgs=0 Message-ID: <4F193CEE.5090008@maniatis.org> Date: Fri, 20 Jan 2012 21:07:42 +1100 From: Aristedes Maniatis User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0) Gecko/20120111 Thunderbird/10.0 MIME-Version: 1.0 To: user@cayenne.apache.org Subject: Re: Some more concrete questions about Cayenne References: <4F18D29B.2030601@maniatis.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 20/01/12 8:21 PM, Erlend Birkenes wrote: > 2012/1/20 Aristedes Maniatis > >> Not perfect, but this helps... >> >> http://cayenne.apache.org/**schema/3.0/indexList.html >> >> Happy to accept any help with getting better docs into the schema XSD. >> >> > Thanks, I knew about that and it was very useful. It's not always obvious > what the various tags are for, so it could use more descriptions. I > generally had to do things in the Modeler and look at the resulting XML to > figure out how to do things correctly. I have checked out the source, so > I'll see if I can write some docs when I have some time. Great. I think it would be terrifically useful to extract docs from javadocs and anywhere else we can, to insert into the XSD file. Then I can regenerate the docs and we'll get much more informative web pages. > One of the things I wondered about: what is the point of the > attribute-override? I see the Modeler uses it for flattened attributes, so > I do too, but the obj-attribute seems to already say the exact same thing > so I don't see the point. I am not sure. I generated the html docs and the XSD, but I didn't always understand some of the more obscure bits. Andrus will know. > Your link is broken btw, it just shows the index and not the content. This > is the correct URL: > > http://cayenne.apache.org/schema/3.0/modelMap.html Yes, that's better. It is also worth noting that Cayenne modeler isn't validating its output or input against the schema right now. We didn't want to enable that and break XML files which work, but which did not meet the schema exactly (for example, XSD is very particular about the order of attributes). Ari -- --------------------------> Aristedes Maniatis GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A