From the course: Learning NetBeans

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create entity classes

Create entity classes

From the course: Learning NetBeans

Start my 1-month free trial

Create entity classes

- [Instructor] We're now ready to create our entity classes. So let's go ahead and highlight our project, MyWebApp, right click on it, select new, and choose entity class from database. We're going to choose our data source. We'll go down and choose new data source. And for the database connection we'll choose MySampledb, and I'll give it the name of MySampleData. We'll click OK. What I'd like us to do is have our application give us the option to manipulate our customer information. So let's choose customer and click add. It'll move over to the selected tables along with the tables that it has relationships with. And kind of pay attention to the steps that we're going through. So by default we already went through choosing the file type now we just chose the database tables, next is going to be the entity classes. So there's nothing that we need to change on this screen, so we'll click next. And likewise for this screen, there's nothing that we need to do, so we will just click…

Contents