Thanks in advanced! Java Programming Create a new database with title of MovieDa
ID: 3695893 • Letter: T
Question
Thanks in advanced!
Java Programming
Create a new database with title of MovieData, have one table with the following fields: movie ID, movie title, length of movie in minutes, movie company name. Insert into the table 4 new entries and output a message when the insert is done. Create a class that will add a new entry to the database based on what the user enters. Be abel to query the database to find all the movies that have a title in them. You can pick a title that you know is in your database to test and then pick another title that is not to test it. The user can input the title to search with.
Explanation / Answer
Hi below i have written a sample code for your reference, Hope you understand the code :)
create_movie_database.sql
Let's make a servlet for fetching and rendering all the movies:
Here is a first pass:
We made use of a business object bean (following modern practices, a POJO):
and a service object (sometimes called a DAO):
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.