Topic: Example 420 Store object instance into database
Environment:
1. JDK 1.6.0.39
2. Eclipse JUNO JavaEE x86
3. Tomcat 7.0.37
4. MySQL 5.6
Solution:
1. use hibernate3 framework to save data.
2. create Table tb420 in MySQL database.
3. create hibernate.cfg.xml and writein connection parameter.
4. create Tb420.hbm.xml to map between Class Tb420 and Table tb420.
5. use Tb420Servlet to insert data into Table tb420.
Result:
/readme/img/420-001.PNG
/readme/img/420-002.PNG
/readme/img/420-003.PNG