01: package com.bm.testsuite.dataloader;
02:
03: import javax.persistence.EntityManager;
04:
05: /**
06: * This interface must be implemented if the database should contain initial
07: * data. These rows willinsertetinto the DB before every test and deleted after
08: * the test.
09: *
10: * @author Daniel Wiese
11: *
12: */
13: public interface InitialDataSet {
14:
15: /**
16: * Creates the data.
17: */
18: void create();
19:
20: /**
21: * Deletes the data.
22: *
23: * @param em -
24: * the enntity manager.
25: */
26: void cleanup(EntityManager em);
27:
28: }
|