Ok, we test Hibernate's MySQL driver
Package com.test.hbm;
/ **
* @Author yanghx
*
* To change the template for this generated type comment Go to to TOERATED TYPLATE
* Window - Preferences - Java - Code Generation - Code and Comments
* /
Public class testhbm {
Private string id;
PRIVATE STRING NAME;
Public string getname () {
Return Name;
}
Public void setname (string n) {
Name = n;
}
Public string getId () {
Return ID;
}
Public void setid (String i) {
ID = i;
}
}
XML Version = "1.0"?>
"- // hibernate / hibernate mapping dtd // en"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
id>
clas>
hibernate-maping>