}
}
public void DebugAddTestEntity()
{
TestEntity testEntity = new TestEntity();
//set local attributes
testEntity.setMsg(BaseUtil.GenerateRandomString(10));
//type relationship .. get it from DB
try
{
List<BasicEntityType> basicEntityType = basicEntityTypeService.getAll();
for(BasicEntityType bet:basicEntityType)
{
if(bet.getType() == EntityType.TEST)
{
testEntity.setEntityType(bet);
testEntityService.create(testEntity);
break;
}
}
}