class HibernateReservedValueStore extends HibernateGenericStore<ReservedValue> implements ReservedValueStore {

    @Override
    public List<ReservedValue> reserveValuesJpa( ReservedValue reservedValue, List<String> values )
    {
        List<ReservedValue> toAdd = getGeneratedValues( reservedValue, values );
        toAdd.forEach( rv -> save( rv ) );
        return toAdd;
    }

    public  HibernateReservedValueStore( SessionFactory sessionFactory, JdbcTemplate jdbcTemplate,
        ApplicationEventPublisher publisher, BatchHandlerFactory batchHandlerFactory );

}