Commit bd4b184a authored by mathieu's avatar mathieu

Fix LCIAGraph: Switch column Idnode and IdParentNode, remove unit column

parent 14f876ab
......@@ -66,6 +66,4 @@ public class LCIGraph {
private double percent;
private double total;
@Column(name = "unit_id")
private long unit;
}
......@@ -137,9 +137,9 @@ public class InsertModelLCADatabase {
//TODO To test (service is down now)
loadQuery = "LOAD DATA LOCAL INFILE '" + localFilePath[ModelLCAType.GRAPH.ordinal()] +
"' INTO TABLE tbl_LCIGraph FIELDS TERMINATED BY ','" + " LINES TERMINATED BY '\\n' " +
"(@impactCategory_id,@idNode,@idNodeParent,@process_id,@qty,@percent,@total,@unit_id) set " +
"(@impactCategory_id,@idNodeParent,@idNode,@process_id,@qty,@percent,@total) set " +
"impactCategory_id = @impactCategory_id,idNode = @idNode,idNodeParent = @idNodeParent," +
"process_id = @process_id, qty = @qty, percent = @percent, total = @total, unit_id = @unit_id, " +
"process_id = @process_id, qty = @qty, percent = @percent, total = @total, " +
"resultSet_id="+resultSetId+";";
System.out.println("SQLQuery : " + loadQuery);
statement.execute(loadQuery);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment