Hello after creating our database, we will start now creating our ADF application. So I will bris create a new application create it if we use it with application this okay. Okay if school application is as I told you, it's our to project will be created first one for the model and we will use it a business component. Next is our package you controller project application project for the view layer and breasts finish while developing your ADF application You should have some standards you should follow for any ADF application. I will show you what I mean for that. So you have a model with a model, package view controller with a view package.
This is by default, that's fine. So, the first step you should do is create your model I will not now touch any view controller now view, I will now work in some model. So after you creating your database, you should go to to somebody. So first, the first step is to connect your ADF application with our school database. So here from some model, I can right click new business components from tables. Okay.
Here he asked for a connection, you can look up for your score. connection and copy the connection Okay, this is because Oracle database. So, you will find here the SQL platform is Oracle if you create MySQL database. So, it will be a US or a type of SQL it will have here a Java. So, depending on the database which you would connect this as your default role automatically selects a platform and other type and press OK. The first a business component is the entity.
So, let us have the center which I told you about it that all entity object I will put it in the package called module dot e Oh okay. And I will press query to get all database. All tables I have in this schema so I was charted all tables it means I need to create entity object for each table for all tables. So, for all tables now on I need to create entity object for all tables and I will put it into your package. Next, this is entity based view obviously this is a view object which is based on the entity. So I will add this in the package called V or try to have some standards for any publications at all view object, a business entity will be in the beach called vo.
And I want to create a view object for all entity. Just here is a query based if you object if you want to create a query based not based on entity just read only view object but I don't want to do it now. Nick is here for creating your application modules. Okay. Next, next, next finish this is the second step for any PDF application development you should do. So the first step is creating your database creating the tables.
After that, you create ADF application and start from the model. From the model as you can see zero eo and have all entity object zero vo and has all view object. Of course this view object is based on the entity. How do you know that as I said before, once you open the view object here's the entity object you will find it is based on the entity and the query by default will be Select star from the table or depending on the application. If you still don't choose it, you will find the selected select the star or select all from the plus from no conditions. Just select all data from the tables.
So here this is the second step. Tip is curating ADF application and connect is a module to the database and the Create entity object for all tables and the view object based on that entity object. Let's continue the festivities so see you next