楼主,表名是可以大写的,字段名也是可以大写的.我们的数据库字段名全是大写,表名第一个单词字母也是.
为什么你不能?
是不是你在哪设置了?
就像SQL SERVER在安装时一样,设置了区分大小写的.

解决方案 »

  1.   

    谢谢各位,我搞定了,可以在配置文件里加引号来解决,比如下面的文件:
    <?xml version="1.0"?>
    <!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
        
    <hibernate-mapping>
      <class name="com.Cat" table="&quot;CAT&quot;" dynamic-update="false">
        <id name="id" type="string" unsaved-value="null">
          <column name="&quot;CAT_ID&quot;" sql-type="char(4)" not-null="true"/>
        </id>
        <property name="name" column="="&quot;NAME&quot"/>
        <property name="age" column="="&quot;AGE&quot"/>
      </class>
    </hibernate-mapping>