From the course: Java EE: Concurrency and Multithreading

Unlock the full course today

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

Define the bank account related beans and DAO class

Define the bank account related beans and DAO class

From the course: Java EE: Concurrency and Multithreading

Start my 1-month free trial

Define the bank account related beans and DAO class

- [Woman] Let's start the ManagedExecutorService demo now. First we will do all the database interactions and the things related to the data of the objects, right? So the first thing is create a BankAccountDao class. So let's head back to the IDE and under the Dao folder, I'm going to create a class. BankAccountDao. So this is the class which is going to do the database interactions for us. Next step will be create the BankAccount and the BankAccountTransaction beans as per the tables. So if you look at the database. I have the BankAccount table with these fields, and the Transaction table with five other columns. Do not worry about this. The database script is already provided to you in your exercise files. So you will have all of this data ready with you when you start off this demo. So let's go to the IDE and create beans now. Let's create one for BankAccount to store all the BankAccount information. And what will it have? It will have an account number. Then it will have the name…

Contents