code: public static PreparedStatement createNodeTable(Connection connection, String nodeTableName, boolean isH2) throws SQLException {
          try (Statement stmt = connection.createStatement()) {
              StringBuilder sb = new StringBuilder("CREATE TABLE ");
              sb.append(nodeTableName);
              sb.append("(ID_NODE BIGINT PRIMARY KEY,  THE_GEOM ");
              if(isH2) {
                  sb.append("POINT CHECK ST_SRID(THE_GEOM)=4326");
              } else {
                  sb.append("GEOMETRY(POINT, 4326)");
              }
              sb.append(",ELE DOUBLE PRECISION,"
                      + "USER_NAME VARCHAR,"
                      + "UID BIGINT,"
                      + "VISIBLE BOOLEAN,"
                      + "VERSION INTEGER,"
                      + "CHANGESET INTEGER,"
                      + "LAST_UPDATE TIMESTAMP,"
                      + "NAME VARCHAR);");
              stmt.execute(sb.toString());
          }
          return connection.prepareStatement("INSERT INTO " + nodeTableName + " VALUES (?,?,?,?,?,?,?,?,?,?);");
      }
docs: Create the nodes table that will be used to import OSM nodes
  Example :
  <node id="298884269" lat="54.0901746" lon="12.2482632" user="SvenHRO"
  uid="46882" visible="true" version="1" changeset="676636"
  timestamp="2008-09-21T21:37:45Z"/>
  
  @param connection
  @param nodeTableName
  @param isH2
  @return
  @throws SQLException