You are viewing a plain text version of this content. The canonical link for it is here.
Posted to graffito-commits@incubator.apache.org by cl...@apache.org on 2005/09/06 21:57:25 UTC
svn commit: r279139 -
/incubator/graffito/trunk/jcr-mapping/src/dtd/graffito-jcr-mapping.dtd
Author: clombart
Date: Tue Sep 6 14:57:22 2005
New Revision: 279139
URL: http://svn.apache.org/viewcvs?rev=279139&view=rev
Log:
Add first DTD version
Added:
incubator/graffito/trunk/jcr-mapping/src/dtd/graffito-jcr-mapping.dtd
Added: incubator/graffito/trunk/jcr-mapping/src/dtd/graffito-jcr-mapping.dtd
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr-mapping/src/dtd/graffito-jcr-mapping.dtd?rev=279139&view=auto
==============================================================================
--- incubator/graffito/trunk/jcr-mapping/src/dtd/graffito-jcr-mapping.dtd (added)
+++ incubator/graffito/trunk/jcr-mapping/src/dtd/graffito-jcr-mapping.dtd Tue Sep 6 14:57:22 2005
@@ -0,0 +1,72 @@
+<!--
+/*
+ * Copyright 2004-2005 The Apache Software Foundation or its licensors,
+ * as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<!ELEMENT graffito-jcr (class-descriptor*)>
+<!--
+ Class descriptor - Each class descriptor describes the mapping strategy used for one a java class
+ *className : the className
+ * jcrNodeType : the primary jcr node type, it can be nt:unstructured
+-->
+<!ELEMENT class-descriptor (field-descriptor*, bean-descriptor*, collection-descriptor*)>
+
+<!ATTLIST class-descriptor
+ className CDATA #REQUIRED
+ jcrNodeType CDATA #IMPLIED >
+
+<!--
+ Field descriptor - A field descriptor maps one atomic object attribute (primitive types, String, Long, ...) into a JCR property
+ * fieldName : the field/attribute name
+ * jcrName : the jcr property name (optional). If it is not defined, fieldname is used to specify the jcr property name
+-->
+
+<!ELEMENT field-descriptor EMPTY>
+<!ATTLIST field-descriptor
+ fieldName CDATA #REQUIRED
+ jcrName CDATA #IMPLIED
+>
+
+<!--
+ Bean descriptor - A bean descriptor maps one object attribute (primitive types, String, Long, ...) into a JCR node.
+ * fieldName : the field/attribute name
+ * jcrName : the jcr node name (optional). If it is not defined, fieldname is used to specify the jcr node name
+ * proxy : Use lazy loading or not. if true, this attributes is not loaded when the main object is retrieved. it will be loaded when the get method is called.
+
+-->
+<!ELEMENT bean-descriptor EMPTY>
+<!ATTLIST bean-descriptor
+ fieldName CDATA #REQUIRED
+ jcrName CDATA #IMPLIED
+ proxy (true | false) "false"
+>
+
+<!--
+ Collection descriptor - A collection descriptor maps one object attribute based on a collection (or a map) into a series of JCR nodes.
+ * fieldName : the field/attribute name
+ * jcrName : the jcr property name (optional). If it is not defined, fieldname is used to specify the jcr node name
+ * proxy : Use lazy loading or not. if true, this attributes is not loaded when the main object is retrieve. it will be loaded when the get method is called.
+
+-->
+
+<!ELEMENT collection-descriptor EMPTY>
+<!ATTLIST collection-descriptor
+ fieldName CDATA #REQUIRED
+ jcrName CDATA #IMPLIED
+ proxy (true | false) "false"
+ clasName CDATA #REQUIRED
+>