From: <one...@us...> - 2003-04-05 07:13:41
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate In directory sc8-pr-cvs1:/tmp/cvs-serv26924 Modified Files: hibernate-mapping-2.0.dtd Log Message: added many-to-any, index-many-to-any added update and insert attributes to component Index: hibernate-mapping-2.0.dtd =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/hibernate-mapping-2.0.dtd,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** hibernate-mapping-2.0.dtd 29 Mar 2003 07:36:22 -0000 1.18 --- hibernate-mapping-2.0.dtd 5 Apr 2003 07:13:37 -0000 1.19 *************** *** 54,58 **** If a name attribut is given, the id is exposed to the application through the named property of the class. If not, the id is only exposed to the application ! through Session.getID()--> <!ELEMENT id (meta*, column*, generator)> --- 54,58 ---- If a name attribut is given, the id is exposed to the application through the named property of the class. If not, the id is only exposed to the application ! via Session.getIdentifier()--> <!ELEMENT id (meta*, column*, generator)> *************** *** 196,199 **** --- 196,202 ---- <!ATTLIST component class CDATA #IMPLIED> <!ATTLIST component name CDATA #REQUIRED> + <!ATTLIST component update (true|false) "true"> + <!ATTLIST component insert (true|false) "true"> + <!ELEMENT dynabean ( *************** *** 216,221 **** jcs-cache?, key, ! (index|composite-index|index-many-to-many), ! (element|one-to-many|many-to-many|composite-element) )> <!ATTLIST map name CDATA #REQUIRED> --- 219,224 ---- jcs-cache?, key, ! (index|composite-index|index-many-to-many|index-many-to-any), ! (element|one-to-many|many-to-many|composite-element|many-to-any) )> <!ATTLIST map name CDATA #REQUIRED> *************** *** 233,237 **** jcs-cache?, key, ! (element|one-to-many|many-to-many|composite-element) )> <!ATTLIST set name CDATA #REQUIRED> --- 236,240 ---- jcs-cache?, key, ! (element|one-to-many|many-to-many|composite-element|many-to-any) )> <!ATTLIST set name CDATA #REQUIRED> *************** *** 249,253 **** jcs-cache?, key, ! (element|one-to-many|many-to-many|composite-element) )> <!ATTLIST bag name CDATA #REQUIRED> --- 252,256 ---- jcs-cache?, key, ! (element|one-to-many|many-to-many|composite-element|many-to-any) )> <!ATTLIST bag name CDATA #REQUIRED> *************** *** 265,269 **** key, index, ! (element|one-to-many|many-to-many|composite-element) )> <!ATTLIST list name CDATA #REQUIRED> --- 268,272 ---- key, index, ! (element|one-to-many|many-to-many|composite-element|many-to-any) )> <!ATTLIST list name CDATA #REQUIRED> *************** *** 280,284 **** key, index, ! (element|one-to-many|many-to-many|composite-element) )> <!ATTLIST array name CDATA #REQUIRED> --- 283,287 ---- key, index, ! (element|one-to-many|many-to-many|composite-element|many-to-any) )> <!ATTLIST array name CDATA #REQUIRED> *************** *** 366,369 **** --- 369,382 ---- <!ELEMENT composite-index ( (key-property|key-many-to-one)+ )> <!ATTLIST composite-index class CDATA #REQUIRED> + + <!-- A "many to any" defines a polymorphic association to any table + with the given identifier type. The first listed column is a VARCHAR column + holding the name of the class (for that row). --> + + <!ELEMENT many-to-any (column, column+)> + <!ATTLIST many-to-any id-type CDATA #REQUIRED> + + <!ELEMENT index-many-to-any (column, column+)> + <!ATTLIST index-many-to-any id-type CDATA #REQUIRED> <!-- Generators generate unique identifiers. The class attribute specifies a Java class |