Commit 1e35ebdd authored by Matija Obreza's avatar Matija Obreza
Browse files

Always upsert sample data

parent 5742de5a
......@@ -131,11 +131,7 @@ public class FirstRunListener extends RunAsAdminListener {
LOG.warn("Skipping creation of initial OAuth client");
}
if (accessionRepository.count() == 0) {
addSomeAccessions();
} else {
LOG.warn("Skipping creation of dummy accession data");
}
addSomeAccessions();
}
private void addCrop(String shortName) {
......
[{
"instCode": "PER001",
"doi": "10.0155/43X~",
"acceNumb": "CIP 102081.28",
"genus": "Solanum",
"cropName": "Sweetpotato",
"available": true,
"sampStat": 400,
"storage": [30],
"origCty": "PER"
}]
"instCode": "PER001",
"doi": "10.18730/2BYS",
"acceNumb": "CIP 400004",
"genus": "Ipomoea",
"orgCty": "PER"
},
{
"instCode": "PER001",
"doi": "10.18730/2BRK",
"acceNumb": "CIP 374080.5",
"acceName": [ "Perricholi "],
"genus": "Solanum",
"orgCty": "PER",
"acqDate": "19931026",
"availability": true
}
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment