Vaadin tutorial startup problem

I am new to vaadin…After downloading and starting vaadin (flow-crm-tutorial) I get error message about inserting values in database. Is there someone who can help me understanding how to properly setup database? Error is like this: 2022-12-13 16:10:27.798 ERROR 20316 — [ restartedMain] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSourceScriptDatabaseInitializer’ defined in class path resource [org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL ******** : INSERT INTO “STATUS” VALUES (‘72b11cec-0080-496a-a3a9-92494007befb’, ‘Imported lead’), (‘5ce3bbc1-6561-4c71-aa33-382692322b40’, ‘Not contacted’), (‘d6c3fe4e-e7c9-4961-b7fe-9350242992e9’, ‘Contacted’), (‘983b41a6-f1b6-4309-87df-5bfd2048392f’, ‘Customer’), (‘b501cfdc-ea0b-4659-b6d5-0449467a9ca0’, ‘Closed (lost)’); nested exception is org.h2.jdbc.JdbcSQLSyntaxErrorException: Table “STATUS” not found (this database is empty);

I looks like it’s trying to insert data into a tabled called STATUS

did you create a data.sql file?

Add these lines to your file. They seem to be missing from the special template version generated for the tutorial :man_facepalming: :

spring.jpa.defer-datasource-initialization = true