Search in sources :

Example 1 with Movie2DataBase

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();
    }
}
Also used : VTransactionWritable(io.vertigo.commons.transaction.VTransactionWritable) Movie2DataBase(io.vertigo.dynamo.criteria.data.movies.Movie2DataBase)

Aggregations

VTransactionWritable (io.vertigo.commons.transaction.VTransactionWritable)1 Movie2DataBase (io.vertigo.dynamo.criteria.data.movies.Movie2DataBase)1