Skip to content

USDA National Nutrient Database for Standard Reference SR28

License

Notifications You must be signed in to change notification settings

GregEakin/NutrishSr28

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nutrish Sr28

🔥 Greg Eakin

This is an experiment in configuring an existing database in Hibernate and JUnit 5. Here we defined the schema with annotation in Java files.

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