A Simple Java HelloWorld MVC program example

Hope this helps some of my students

GitHub Super-Linter

Author : jeanaymeric@gmail.com

JavaDoc : https://jean-aymeric.github.io/JavaHelloWorldMVC/

Visual Paradigm Files : https://jean-aymeric.github.io/JavaHelloWorldMVC/vpp/HelloWorldMVC.vpp

 _____     _ _     _ _ _         _   _    _____ _____ _____    _             __ _____ ____  
|  |  |___| | |___| | | |___ ___| |_| |  |     |  |  |     |  | |_ _ _    __|  |  _  |    \ 
|     | -_| | | . | | | | . |  _| | . |  | | | |  |  |   --|  | . | | |  |  |  |     |  |  |
|__|__|___|_|_|___|_____|___|_| |_|___|  |_|_|_|\___/|_____|  |___|_  |  |_____|__|__|____/ 
                                                                  |___|                     
---------------------------------------------------------------------------------------------
id	| Code	| Name
------------------------------------------
1	| FR	| France
6	| CH	| Suisse
2	| UK	| United Kingdom
3	| US	| United states of america
4	| ES	| España
5	| DE	| Deutschland
7	| ID	| Indonesia
------------------------------------------

Instructions :

  • Download the SQL script : helloworldmvc.sql or docs/sql/helloworldmvc.sql.
  • Execute the SQL script on your MySql or MAriaDB server.
  • Change the user and password in the configuration file com/jad/model/dao/db.properties.
  • Run the Main class.

Use Case Diagram

Use Case Diagram

Class Diagram

Class Diagram

Sequences Diagram

Global Sequence

Use Case Diagram

IModel.getCountries()

Use Case Diagram

IModel.getCountryByCode()

Use Case Diagram

IModel.getCountryByName()

Use Case Diagram

IView.askCodeOrName()

Use Case Diagram

IView.askUserFindChoice()

Use Case Diagram

IView.printMessage()

Use Case Diagram

DbConnection Singleton Design Pattern

Use Case Diagram