Connections テーブルへの挿入中に connection_id 列を取得しようとしています。このように、アプリケーションの開始時にテーブルが生成され、column_id が自動生成されます。
CREATE TABLE connections (connection_ID INT not null primary key GENERATED ALWAYS AS IDENTITY(START WITH 1, INCREMENT BY 1),
connection_name VARCHAR(100) unique not null, user_name VARCHAR(100) not null, password VARCHAR (100) not null, server_url
VARCHAR(100) not null, port_number VARCHAR(10) not null),
次のステートメントを使用して、connection_ids のリアットを取得しています
PreparedStatement stmt = dbconn.prepareStatement(insertString, new String[] {"connection_id"});
しかし、connection_id が自動生成されているにもかかわらず、次の例外が発生します。
java.sql.SQLException: Table 'CONNECTIONS' does not have an auto-generated column named 'connection_id'.