|
From: <one...@us...> - 2003-01-02 11:01:53
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate
In directory sc8-pr-cvs1:/tmp/cvs-serv30125/src/net/sf/hibernate
Modified Files:
hibernate-mapping-2.0.dtd
Log Message:
changed default unsaved-value
changed 'role' attribute to 'name'
added a new check/exception in delete()
Index: hibernate-mapping-2.0.dtd
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/hibernate-mapping-2.0.dtd,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** hibernate-mapping-2.0.dtd 1 Jan 2003 15:12:51 -0000 1.2
--- hibernate-mapping-2.0.dtd 2 Jan 2003 11:01:49 -0000 1.3
***************
*** 52,56 ****
<!ATTLIST id type CDATA #IMPLIED>
<!ATTLIST id length CDATA #IMPLIED>
! <!ATTLIST id unsaved-value CDATA "any"> <!-- any|none|null|"value" -->
<!-- A composite key may be modelled by a java class with a property for each
--- 52,56 ----
<!ATTLIST id type CDATA #IMPLIED>
<!ATTLIST id length CDATA #IMPLIED>
! <!ATTLIST id unsaved-value CDATA "null"> <!-- any|none|null|"value" -->
<!-- A composite key may be modelled by a java class with a property for each
***************
*** 163,167 ****
<!ELEMENT component (
parent?,
! (property|many-to-one|one-to-one|collection|component|map|set|list|bag|array|primitive-array)*
)>
<!ATTLIST component class CDATA #IMPLIED>
--- 163,167 ----
<!ELEMENT component (
parent?,
! (property|many-to-one|one-to-one|component|map|set|list|bag|array|primitive-array)*
)>
<!ATTLIST component class CDATA #IMPLIED>
***************
*** 174,185 ****
<!ATTLIST parent name CDATA #REQUIRED>
! <!-- Collection roles declared directly beneath the root element have their own key
! and may be referenced by many collection or subcollection tags. Collection declarations
! nested inside a class declaration indicate a foreign key relationship from the
! collection table to the enclosing class. For toplevel collections, the name of
! the role may be an arbitrary string. For nested collections, it must be the name
! of the property containing the collection.
!
! Note that the cascade attribute is ignored for toplevel collections. -->
<!ELEMENT map (
--- 174,179 ----
<!ATTLIST parent name CDATA #REQUIRED>
! <!-- Collection declarations nested inside a class declaration indicate a foreign key
! relationship from the collection table to the enclosing class. -->
<!ELEMENT map (
***************
*** 189,194 ****
(element|one-to-many|many-to-many|composite-element)
)>
! <!ATTLIST map role CDATA #REQUIRED>
! <!ATTLIST map table CDATA #IMPLIED> <!-- default: rolename -->
<!ATTLIST map schema CDATA #IMPLIED> <!-- default: none -->
<!ATTLIST map lazy (true|false) "false">
--- 183,188 ----
(element|one-to-many|many-to-many|composite-element)
)>
! <!ATTLIST map name CDATA #REQUIRED>
! <!ATTLIST map table CDATA #IMPLIED> <!-- default: name -->
<!ATTLIST map schema CDATA #IMPLIED> <!-- default: none -->
<!ATTLIST map lazy (true|false) "false">
***************
*** 203,208 ****
(element|one-to-many|many-to-many|composite-element)
)>
! <!ATTLIST set role CDATA #REQUIRED>
! <!ATTLIST set table CDATA #IMPLIED> <!-- default: rolename -->
<!ATTLIST set schema CDATA #IMPLIED> <!-- default: none -->
<!ATTLIST set lazy (true|false) "false">
--- 197,202 ----
(element|one-to-many|many-to-many|composite-element)
)>
! <!ATTLIST set name CDATA #REQUIRED>
! <!ATTLIST set table CDATA #IMPLIED> <!-- default: name -->
<!ATTLIST set schema CDATA #IMPLIED> <!-- default: none -->
<!ATTLIST set lazy (true|false) "false">
***************
*** 217,222 ****
(element|one-to-many|many-to-many|composite-element)
)>
! <!ATTLIST bag role CDATA #REQUIRED>
! <!ATTLIST bag table CDATA #IMPLIED> <!-- default: rolename -->
<!ATTLIST bag schema CDATA #IMPLIED> <!-- default: none -->
<!ATTLIST bag lazy (true|false) "false">
--- 211,216 ----
(element|one-to-many|many-to-many|composite-element)
)>
! <!ATTLIST bag name CDATA #REQUIRED>
! <!ATTLIST bag table CDATA #IMPLIED> <!-- default: name -->
<!ATTLIST bag schema CDATA #IMPLIED> <!-- default: none -->
<!ATTLIST bag lazy (true|false) "false">
***************
*** 231,236 ****
(element|one-to-many|many-to-many|composite-element)
)>
! <!ATTLIST list role CDATA #REQUIRED>
! <!ATTLIST list table CDATA #IMPLIED> <!-- default: rolename -->
<!ATTLIST list schema CDATA #IMPLIED> <!-- default: none -->
<!ATTLIST list lazy (true|false) "false">
--- 225,230 ----
(element|one-to-many|many-to-many|composite-element)
)>
! <!ATTLIST list name CDATA #REQUIRED>
! <!ATTLIST list table CDATA #IMPLIED> <!-- default: name -->
<!ATTLIST list schema CDATA #IMPLIED> <!-- default: none -->
<!ATTLIST list lazy (true|false) "false">
***************
*** 244,249 ****
(element|one-to-many|many-to-many|composite-element)
)>
! <!ATTLIST array role CDATA #REQUIRED>
! <!ATTLIST array table CDATA #IMPLIED> <!-- default: rolename -->
<!ATTLIST array schema CDATA #IMPLIED> <!-- default: none -->
<!ATTLIST array element-class CDATA #IMPLIED>
--- 238,243 ----
(element|one-to-many|many-to-many|composite-element)
)>
! <!ATTLIST array name CDATA #REQUIRED>
! <!ATTLIST array table CDATA #IMPLIED> <!-- default: name -->
<!ATTLIST array schema CDATA #IMPLIED> <!-- default: none -->
<!ATTLIST array element-class CDATA #IMPLIED>
***************
*** 251,256 ****
<!ELEMENT primitive-array (jcs-cache?, key, index, element)>
! <!ATTLIST primitive-array role CDATA #REQUIRED>
! <!ATTLIST primitive-array table CDATA #IMPLIED> <!-- default: rolename -->
<!ATTLIST primitive-array schema CDATA #IMPLIED> <!-- default: none -->
--- 245,250 ----
<!ELEMENT primitive-array (jcs-cache?, key, index, element)>
! <!ATTLIST primitive-array name CDATA #REQUIRED>
! <!ATTLIST primitive-array table CDATA #IMPLIED> <!-- default: name -->
<!ATTLIST primitive-array schema CDATA #IMPLIED> <!-- default: none -->
|