日期:2014-05-16 浏览次数:20938 次
建表结构如下
mysql> desc test;
+----------+--------------+------+-----+---------+----------------+
| Field    | Type         | Null | Key | Default | Extra          |
+----------+--------------+------+-----+---------+----------------+
| id       | int(11)      | NO   | PRI | NULL    | auto_increment | 
| username | varchar(100) | NO   |     | NULL    |                | 
+----------+--------------+------+-----+---------+----------------+
2 rows in set (0.00 sec)
mysql>
hibernate配置文件 hibernate.cfg.xml