IModelEntity entity = getParent();
if(entity.getParent() != null) {
if(entity.getParent() instanceof ModelViewEntity){
fieldName = getName();
return new Couple (fieldName, entity);
}
fieldName = toLowerCase( entity.getName() );
entity = entity.getParent();
}
while(entity.getParent() != null) {
if(entity.getParent() instanceof ModelViewEntity){
if(!fieldName.equalsIgnoreCase("")) fieldName += ".";
fieldName = fieldName+getName();
return new Couple (fieldName, entity);
}
fieldName = toLowerCase( entity.getName() ) + "." + fieldName;
entity = entity.getParent();
}
if(!fieldName.equalsIgnoreCase("")) fieldName += ".";
fieldName += getName();
return new Couple (fieldName, null);
}