}
public void DebugAddPersonAdminRole()
{
//one time to establish structure
AccountRole accountRole = new AccountRole();
accountRole.setLoginName(BaseUtil.GenerateRandomString(10));
accountRole.setLoginPassword(BaseUtil.GenerateRandomString(10));
//type relationship .. get it from DB
try
{
List<BasicRoleType> basicRoleType = basicRoleTypeService.getAll();
for(BasicRoleType brt:basicRoleType)
{
if(brt.getType() == RoleType.ADMIN_ACCOUNT)
{
accountRole.setRoleType(brt);
accountRoleService.create(accountRole);
break;
}
}
}