}
}
public void DebugAddRandomPoiEntity()
{
PoiEntity poiEntity = new PoiEntity();
//set local attributes
poiEntity.setName(BaseUtil.GenerateRandomString(10));
poiEntity.setLatitude(10.0);
poiEntity.setLongitude(10.0);
//type relationship .. get it from DB
try
{
List<BasicEntityType> basicEntityType = basicEntityTypeService.getAll();
for(BasicEntityType bet:basicEntityType)
{
if(bet.getType() == EntityType.POI)
{
poiEntity.setEntityType(bet);
poiEntityService.create(poiEntity);
break;
}
}
}