In this post i explain how to insert data into MySQL database using Hibernate with the help of NetBeans IDE. First you need to create a database and a table in the MySQL database. While creating the table keep in mind that, the table must contain a primary key field. I use the following query for create the table. create table test_table (id int not null primary key auto_increment,name varchar(50), email varchar(50)); Ads by Google Now you need to follow the steps given bellow. Step 1 : Open up the NetBeans IDE. Step 2 : Go to the services and expand the database. Step 3: Now right click MySQL server and choose connect. Step 4: Now you need to enter your MySQL username and password and choose the database to which you want to insert data. Right click the database...
Computer Programming Video Tutorials