From the course: Java Database Access with Hibernate
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Add objects - Java Tutorial
From the course: Java Database Access with Hibernate
Add objects
- [Instructor] Although this course is not designed to teach my SQL, which is what I'm using as my database support for this project, I wanted to include a quick demonstration on how I create my Hibernated sample database and the two tables, the employee table and the phone table that I need for my project. I'm including a copy of the SQL in a text file in the exercise files folder under Chapter 40401. So we'll start in the services section and that means I'm going to click on the plus sign next to Databases. Then I'm going to click on the plus sign next to MySQL server. You can see here's the databases that already exist. The message repository the schema comes already with the MySQL server. So I'm going to click on MySQL server. I'm going to right click and say Create Database. And I'm going to type in hibernate example and I'm going to click OK. There are now you can see the hibernate example is in my list of databases and if I scroll down I'm going to click on the plus sign next…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.