int idVersion = 1;
conn.SQLUpdate("insert into versions (project , version , creation_date) values ("
+ idProject + "," + lastVersion + " , sysdate())");
ResultSet rs3 = conn
.SQLSelect("select id from versions where version = "
+ lastVersion + " and project = " + idProject);
while (rs3.next()) {
idVersion = rs3.getInt("id");