src/main/java/Region.java
public void save() {
    try(Connection con = DB.sql2o.open()) {
      String sql = "INSERT INTO regions (region_name) VALUES (:region_name)";
      this.id = (int) con.createQuery(sql, true)
        .addParameter("region_name", this.regionName)
        .executeUpdate()
        .getKey();
    }
  }
//potential issue with region_name vs regionName
potential issue with region_name vs regionName
potential issue with region_name vs regionName
public void save() {
    try(Connection con = DB.sql2o.open()) {
      String sql = "INSERT INTO regions (region_name) VALUES (:region_name)";
      this.id = (int) con.createQuery(sql, true)
        .addParameter("region_name", this.regionName)
        .executeUpdate()
        .getKey();
    }
  }
public void save ( ) { try ( Connection con = DB . sql2o . open ( ) ) { String sql = "INSERT INTO regions (region_name) VALUES (:region_name)" ; this . id = ( int ) con . createQuery ( sql , true ) . addParameter ( "region_name" , this . regionName ) . executeUpdate ( ) . getKey ( ) ; } }
potential issue with region_name vs regionName
potential issue with region_name vs regionName