Package nl.datasteel.crudcraft.sample
Class DemoDataSeeder
java.lang.Object
nl.datasteel.crudcraft.sample.DemoDataSeeder
- All Implemented Interfaces:
org.springframework.boot.CommandLineRunner
@Component
public class DemoDataSeeder
extends Object
implements org.springframework.boot.CommandLineRunner
Seeds the in-memory database with sample data for demonstration purposes.
Populates users of different roles so the security examples can be tested.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DemoDataSeeder
public DemoDataSeeder(jakarta.persistence.EntityManager entityManager)
-
-
Method Details
-
run
- Specified by:
run
in interfaceorg.springframework.boot.CommandLineRunner
-