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 Details

    • DemoDataSeeder

      public DemoDataSeeder(jakarta.persistence.EntityManager entityManager)
  • Method Details

    • run

      public void run(String... args)
      Specified by:
      run in interface org.springframework.boot.CommandLineRunner