You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by dl...@apache.org on 2001/06/14 01:59:03 UTC
cvs commit: jakarta-turbine/src/dtd database.dtd
dlr 01/06/13 16:59:03
Modified: src/dtd database.dtd
Log:
The "autoincrement" and "sequence" values for the defaultIdMethod and
idMethod attributes will be deprecatd in favor of "native".
Revision Changes Path
1.7 +3 -3 jakarta-turbine/src/dtd/database.dtd
Index: database.dtd
===================================================================
RCS file: /home/cvs/jakarta-turbine/src/dtd/database.dtd,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- database.dtd 2001/05/31 00:59:47 1.6
+++ database.dtd 2001/06/13 23:59:03 1.7
@@ -1,6 +1,6 @@
<!--
Torque XML database schema DTD
- $Id: database.dtd,v 1.6 2001/05/31 00:59:47 jmcnally Exp $
+ $Id: database.dtd,v 1.7 2001/06/13 23:59:03 dlr Exp $
-->
<!ELEMENT app-data (database+)>
@@ -8,7 +8,7 @@
<!ELEMENT database (table+)>
<!ATTLIST database
name CDATA #IMPLIED
- defaultIdMethod (idbroker|autoincrement|sequence|none) "none"
+ defaultIdMethod (idbroker|native|autoincrement|sequence|none) "none"
package CDATA #IMPLIED
baseClass CDATA #IMPLIED
basePeer CDATA #IMPLIED
@@ -18,7 +18,7 @@
<!ATTLIST table
name CDATA #REQUIRED
javaName CDATA #IMPLIED
- idMethod (idbroker|autoincrement|sequence|none|null) "null"
+ idMethod (idbroker|native|autoincrement|sequence|none|null) "null"
skipSql (true|false) "false"
abstract (true|false) "false"
baseClass CDATA #IMPLIED
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-turbine/src/dtd database.dtd
Posted by Daniel Rall <dl...@finemaltcoding.com>.
Jon Stevens <jo...@latchkey.com> writes:
> on 6/13/01 4:59 PM, "dlr@apache.org" <dl...@apache.org> wrote:
>
> > - defaultIdMethod (idbroker|autoincrement|sequence|none) "none"
> > + defaultIdMethod (idbroker|native|autoincrement|sequence|none) "none"
>
> If you are going to have a native value, you should just get rid of
> autoincrement and sequence. Or, are you keeping them there for backwards
> compatibility?
Yes--they are only around in the DTD for backwards compatibility.
They are used no where except for one place in the Java code which
changes the table's idMethod to "native" if "autoincrement" or
"sequence" was specified in the XML schema (it also prints a
deprecation warning to the log).
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-turbine/src/dtd database.dtd
Posted by Jon Stevens <jo...@latchkey.com>.
on 6/13/01 4:59 PM, "dlr@apache.org" <dl...@apache.org> wrote:
> - defaultIdMethod (idbroker|autoincrement|sequence|none) "none"
> + defaultIdMethod (idbroker|native|autoincrement|sequence|none) "none"
If you are going to have a native value, you should just get rid of
autoincrement and sequence. Or, are you keeping them there for backwards
compatibility?
-jon
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org