db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/src/generator/src/java/org/apache/torque/engine/database/model Database.java
Date Sun, 05 Oct 2003 14:33:19 GMT
mpoeschl    2003/10/05 07:33:19

  Modified:    src/generator/src/java/org/apache/torque/engine/database/model
                        Database.java
  Log:
  add xml header in toString()
  
  Revision  Changes    Path
  1.9       +6 -1      db-torque/src/generator/src/java/org/apache/torque/engine/database/model/Database.java
  
  Index: Database.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/database/model/Database.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Database.java	5 Oct 2003 14:14:03 -0000	1.8
  +++ Database.java	5 Oct 2003 14:33:19 -0000	1.9
  @@ -60,6 +60,7 @@
   import java.util.List;
   
   import org.apache.torque.engine.EngineException;
  +import org.apache.torque.engine.database.transform.DTDResolver;
   import org.apache.torque.engine.platform.Platform;
   import org.apache.torque.engine.platform.PlatformFactory;
   
  @@ -506,6 +507,10 @@
       {
           StringBuffer result = new StringBuffer();
   
  +        result.append ("<?xml version=\"1.0\"?>\n");
  +        result.append ("<!DOCTYPE database SYSTEM \""
  +                + DTDResolver.WEB_SITE_DTD + "\">\n");
  +        result.append("<!-- Autogenerated by SQLToXMLSchema! -->\n");
           result.append("<database name=\"").append(getName()).append('"')
               .append(" package=\"").append(getPackage()).append('"')
               .append(" defaultIdMethod=\"").append(getDefaultIdMethod())
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message