DODS学习日记(二)

发表于:2007-07-01来源:作者:点击数: 标签:
DODS中使用doml文件来产生代码和脚本.它就是DODS的输入文件. 一个例子. ?xml version=1.0 encoding=UTF-8? doml authorEnhydraTeam/author projectnamejspPhoneBook/projectname database database=Hypersonic SQL package id=jspPhoneBook package id=jspPh

DODS中使用doml文件来产生代码和脚本.它就是DODS的输入文件.

    一个例子.



    <?xml version="1.0" encoding="UTF-8"?>

<doml>

  <author>EnhydraTeam</author>

  <projectname>jspPhoneBook</projectname>

  <database database="HypersonicSQL">

    <package id="jspPhoneBook">

      <package id="jspPhoneBook.data">

          <table id="jspPhoneBook.data.Person" dbTableName="person">

            <column id="firstName" usedForQuery="true">

              <type dbType="VARCHAR" javaType="String"/>

            </column>

            <column id="lastName" usedForQuery="true">

              <type dbType="VARCHAR" javaType="String"/>

            </column>

            <column id="phoneNumber" usedForQuery="true">

              <type dbType="VARCHAR" javaType="String"/>

            </column>

          </table>

      </package>

    </package>

  </database>

</doml>

原文转自:http://www.ltesting.net