(First of all, let's talk about my configuration environment:
Development tools: MyEclipse6.6
Database: Mysql
First create a database in MySql (sorry, I will not use hibernate's reverse factory to generate a database):
createdatabasetest;
usetest;
createtableuserinfo
(
uidintprimarykey,
uNamevarchar(50),
uPassvarchar(50),
)
//I will not write the data part, I think we should all know this!)