今天一直建不了数据库中名为"Type"的表 是因为这是hibernate中的关键字还是什么原因 ? 以为其他的表都能自动创建,唯独这张表创建不出来···
------解决思路----------------------
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.pp.soa.entity.Member" table="MEMBER" catalog="ppdb">
<id name="id" type="java.lang.String">
<column name="ID" length="32" />
<generator class="uuid.hex" />
</id>
<property name="account" type="java.lang.String">
<column name="ACCOUNT" length="16" not-null="true">
<comment>用户名</comment>
</column>
</property>
<property name="password" type="java.lang.String">
<column name="PASSWORD" length="32" not-null="true">
<comment>密码</comment>
</column>
</property>
<property name="name" type="java.lang.String">
<column name="NAME" length="32" not-null="true">
<comment>真实姓名</comment>
</column>
</property>
<property name="phoneNum" type="java.lang.String">
<column name="PHONE_NUM" length="32" not-null="true">
<comment>电话</comment>
</column>
</property>
<property name="address" type="java.lang.String">
<column name="ADDRESS" length="32" not-null="true">
<comment>地址</comment>
</column>
</property>
<property name="huoDongMoney" type="java.lang.String">
<column name="HUO_DONG_MONEY" length="32" not-null="true" >
<comment>活动资金</comment>
</column>
</property>
<property name="dongJieMoney" type="java.lang.String">
<column name="DONG_JIE_MONEY" length="32" not-null="true">
<comment>冻结资金</comment>
</column>
</property>
<property name="totalMoney" type="java.lang.String">
<column name="TOTAL_MONEY" length="32" not-null="true"/>
</property>
<property name="renZheng" type="java.lang.String">
<column name="REN_ZHENG" length="1" not-null="true" />
</property>
<property name="shenHe" type="java.lang.String">
<column name="SHEN_HE" length="1" not-null="true" />
</property>
<property name="flag" type="java.lang.String">
<column name="FLAG" length="1" not-null="true" />
</property>
<property name="createDate" type="java.util.Date">
<column name="CREATE_DATE" length="19" not-null="true">
<comment>创建时间</comment>
</column>
</property>
<property name="updateDate" type="java.util.Date">
<column name="UPDATE_DATE" length="19" />
</property>
</class>
</hibernate-mapping>
------解决思路----------------------
type是关键字