✅ Enum Representation in Java
Togo is divided into 5 administrative regions:
- Centrale
- Kara
- Maritime
- Plateaux
- Savanes
Here’s the Java enum
representing these 5 regions with short codes:
java
public enum TogoRegion {
CENTRALE("CE"),
KARA("KA"),
MARITIME("MA"),
PLATEAUX("PL"),
SAVANES("SA");
private final String code;
TogoRegion(String code) {
this.code = code;
}
public String getCode() {
return this.code;
}
}
✅ SQL Representation for Togo’s Regions
Here’s the SQL schema and INSERT
statements for the 5 regions of Togo:
sql
-- Table for Togo administrative regions
CREATE TABLE togo_regions (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
code CHAR(2) NOT NULL
);
-- Insert Togo's regions into the table
INSERT INTO togo_regions (name, code) VALUES
('Centrale', 'CE'),
('Kara', 'KA'),
('Maritime', 'MA'),
('Plateaux', 'PL'),
('Savanes', 'SA');
This setup helps software systems easily manage regional data for Togo — from logistics and governance to education and health services.