Skip to content

Commit

Permalink
AMP-30885: Configure Internal projects for Ecowas
Browse files Browse the repository at this point in the history
  • Loading branch information
brianbrix committed Nov 3, 2024
1 parent e30ab3d commit eb4a797
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ public static ImportedFilesRecord saveFile(File file, String filename) throws IO
query.setParameter("importStatus", ImportStatus.UPLOADED);
query.setParameter("fileName", filename);

query.executeUpdate();
// query.executeUpdate();

Long newId = ((Number) query.uniqueResult()).longValue();

// Retrieve the ID of the newly inserted record
String selectSql = "SELECT LAST_INSERT_ID()";
Query selectQuery = session.createSQLQuery(selectSql);
Long newId = ((Number) selectQuery.uniqueResult()).longValue();



Expand Down

0 comments on commit eb4a797

Please sign in to comment.