hibernate Date Exception
奇怪最近我用hibernate做项目的时候遇到了一个问题,我用hibernate来建表的时候如果类的属性有时间属性的时候就报错误!怎么回事啊。要怎么映射啊!
比如
private String zipCode;
private String contactTel;
private Date date;
<property name="zipCode" column="zipCode" type="string"/>
<property name="contactTel" column="contactTel" type="string"/>
<property name="date" column="date" type="date"/>
或
<property name="date" column="date" type="java.util.date"/>
也不行