Class NumbersInitializer
java.lang.Object
com.vaadin.observability.tests.starter.NumbersInitializer
- All Implemented Interfaces:
org.springframework.boot.CommandLineRunner
@Component
@Profile("db-demo")
public class NumbersInitializer
extends Object
implements org.springframework.boot.CommandLineRunner
Seeds the embedded H2 database with 1000 rows so
DatabaseView can issue both a small and a large fetch against real
JDBC, driving the vaadin.db.fetch.rows summary. Part of the
db-demo profile (see DbDemoConfig).-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NumbersInitializer
public NumbersInitializer(org.springframework.jdbc.core.JdbcTemplate jdbc)
-
-
Method Details
-
run
- Specified by:
runin interfaceorg.springframework.boot.CommandLineRunner
-