version.setVersionValue1("version1value1");
version.setVersionValue2(1);
version.setVersionValue3(new Timestamp(System.currentTimeMillis()));
version.setContract(contract);
Effectiveness eff = new Effectiveness();
eff.setPk("eff1");
eff.setEffValue1("eff1value1");
eff.setEffValue2(1);
eff.setEffValue3(new Timestamp(System.currentTimeMillis()));
eff.setVersion(version);
Contract contract2 = new Contract();
contract2.setPk("contract2");
contract2.setContractValue1("contract2value1");
contract2.setContractValue2(1);
contract2.setContractValue3("contractvalue3");
contract2.setContractValue4(new Timestamp(System.currentTimeMillis()));
Version version2 = new Version();
version2.setPk("version2");
version2.setVersionValue1("version2value1");
version2.setVersionValue2(1);
version2.setVersionValue3(new Timestamp(System.currentTimeMillis()));
version2.setContract(contract2);
Effectiveness eff2 = new Effectiveness();
eff2.setPk("eff2");
eff2.setEffValue1("eff2value1");
eff2.setEffValue2(1);
eff2.setEffValue3(new Timestamp(System.currentTimeMillis()));
eff2.setVersion(version2);
/**
* make them persistent
*/
tx.begin();