第二次插入就报错?
表结构
2.配置文件
表结构
CREATE
TABLE
`cloumn` (
`c_id` varchar ( 16 ) NOT NULL ,
`u_id` varchar ( 16 ) default NULL ,
`c_name` varchar ( 100 ) default NULL ,
`c_sort` int ( 11 ) default NULL ,
`c_beizhu` varchar ( 100 ) ,
PRIMARY KEY (`c_id`)
)
`c_id` varchar ( 16 ) NOT NULL ,
`u_id` varchar ( 16 ) default NULL ,
`c_name` varchar ( 100 ) default NULL ,
`c_sort` int ( 11 ) default NULL ,
`c_beizhu` varchar ( 100 ) ,
PRIMARY KEY (`c_id`)
)
2.配置文件
<?
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" >
< hibernate-mapping >
<
<! DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
< hibernate-mapping >
<