wiki:FillDatabasePluginsManual

NGS LIMS Fill Database Plugin

For NGS, there is a Java class that populates the database. There is a method, populateDatabase(), which creates new pre-defined entities such as measurements, protocols, etc. This method is called in the reload() function of the NgsWelcome Plugin. If someone clicks a second time, it tries again to populate the database but fails because of duplicate values. This is a dirty trick but works.

The NGS LIMS db filler plugin can be found in plugins/fillngsdb under FillNgsDatabase.java.