use of io.vertigo.dynamo.criteria.data.movies.Movie2DataBase in project vertigo by KleeGroup.
the class SqlCriteriaTest method initMainStore.
private void initMainStore() {
// A chaque test on recrée la table famille
SqlUtil.execRequests(transactionManager, taskManager, getCreateMovies(), "TK_INIT_MAIN", Optional.empty());
final Movie2DataBase movie2DataBase = new Movie2DataBase();
try (VTransactionWritable transaction = transactionManager.createCurrentTransaction()) {
movie2DataBase.getAllMovies().forEach(movie2 -> storeManager.getDataStore().create(movie2));
transaction.commit();
}
}
Aggregations