Does 外地人 include those who were born outside but grew up inside? Suppose that a Shanghainese husband and Hangzhounese wife gave birth to their child at a hospital in Chengdu, but raised the child in Shanghai (from age 0 to 18).

In this case, is the child still considered 上海人 or 外地人 in Shanghai? Or is the child considered 成都人 since it is the place of the birth, even if he or she didn't come again to 成都 after the birth? And how about the child whose parents are both NOT shanghainese but he or she grew up in Shanghai (e.g. if the husband is Hangzounese is the child also considered Hangzhounese?)

百度百科 doesn't seem to mention it...
Different people may take this differently. Based on my observation, from a traditional Shanghainese perspective, the criteria of 上海本地人 are: 


户口 is registered in Shanghai. 
Live in Shanghai starting from the very early ages. 
Able to communicate in Shanghai dialect. 
Understand the tradition of Shanghai. 
Your parents are Shanghainese (this criteria may not be that strict. )


It sounds bias, but that's the reality I think.