Implemented load method
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
b32a382c5c
commit
392e671ca5
|
@ -71,6 +71,12 @@ public class Main {
|
|||
|
||||
private static void load()
|
||||
{
|
||||
|
||||
_orm.setAutoCommit(false);
|
||||
_orm.createArticles(_articles);
|
||||
_orm.createDates(_dates);
|
||||
_orm.createShops(_shops);
|
||||
_orm.createSales(_sales);
|
||||
_orm.commit();
|
||||
_orm.setAutoCommit(true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue