Skip to content

GregEakin/NutrishSr28.Kotlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nutrish Sr28 Kotlin

🔥 Greg Eakin

This is an experiment in configuring an existing database in Hibernate and JUnit 5. Here we defined the schema with annotations in Kotlin files running in the JRE.

Run the Unit Tests

  1. Start the HSQLDB server by running dev.eakin.server.Database.main().
  2. Initialize the DB schema with dev.eakin.Ddl.main().
  3. Download SR28ASC.zip, and unzip into the data folder.
  4. Load the data into the database with dev.eakin.DbLoad.main().
  5. Run all unit tests; everything should pass.
  6. Remember to shut down the database when finished, by running dev.eakin.server.Shudown.main().

Tags

Database:

USDA Nutrition Database