I’m looking to import a CSV using an input stream in to my database. I have built the import configuration as follows:
ImportConfiguration config = ImportConfiguration.builder(SIMCards.class, InputDataFormat.CSV)
.addSimplePropertyMapping("LANSubnet","lanSubnet")
.addSimplePropertyMapping("LANIP","lanIpMask")
.addSimplePropertyMapping("ComputerIP","computerIP")
.addSimplePropertyMapping("TTK", "dmvpnSpokeIp")
.addSimplePropertyMapping("Operator","operator")
.addSimplePropertyMapping("SIMIP","simIpSubnet")
.addSimplePropertyMapping("MSISDN","msisdn")
.addSimplePropertyMapping("series","simNumber")
.addSimplePropertyMapping("serial","routerSerial")
.withTransactionStrategy(ImportTransactionStrategy.TRANSACTION_PER_ENTITY)
.build();
The README on the dataimporter, says to use
ImportResult importData(ImportConfiguration config, InputStream importedCsv);
However, IntelliJ is telling me it is expecting a ; after importData.