My first Hibernate app

来源:互联网 发布:linux proc 共享内存 编辑:程序博客网 时间:2024/06/11 16:50

I created my first Hibernate app just now.
It saved some variables to MySQL db.Here are my steps:

1.Create the java project
2.Add hibernate capabilities
3.Create the Persistent class
4.Create the mapping file for Persistent class
5.Add mapping of hbm file in configuration file
6.Create the class that retrieves or stores the persistent object
7.Add jar file for mysql
8.Run the application

from:http://www.javatpoint.com/example-to-create-hibernate-application-in-myeclipse-ide

Here is my code

0 0
原创粉丝点击