Java Database Programming
This my homework on MSIB-06-java link sumber
- Java JDK v8
- Mysql / another database SQL
- Maven v3+
-
setting your configuration database
username
,password
,driver
onsrc/main/resources
-
install dependency with maven
-
create a database with schema on
src/main/resources/DatabaseSchema
Note : theres have 2 sql file, pick
db_hr.sql
for get a dummy data -
try to run
Repository
-> wheres a code interacting with database. On this folder you can found a sql queryService
-> is the second layer to handle bussiness logic the programEntity
-> represent the table on database and prototype the objectController
-> Control flow the requestView
-> give a interface wheres user can get and send dataUtility
-> wheres the tools/utilities, such as database connectionResources
-> wheres save a configuration file or other