@SuppressWarnings("deprecation")
private void insertTimeSampleData(PersistenceManager pm) {
Transaction tx = pm.currentTransaction();
try {
tx.begin();
TimeSample ts1 = new TimeSample();
ts1.setId(1);
Time time = new Time(0);
time.setHours(10);
time.setMinutes(0);
time.setSeconds(0);
ts1.setTime(time);
pm.makePersistent(ts1);
TimeSample ts2 = new TimeSample();
ts2.setId(2);
Time time2 = new Time(0);
time2.setHours(16);
time2.setMinutes(15);
time2.setSeconds(45);
ts2.setTime(time2);
pm.makePersistent(ts2);
tx.commit();
oidOfTime1 = pm.getObjectId(ts1);
oidOfTime2 = pm.getObjectId(ts2);
tx = null;