The game will treat it as such and give it the beach icon even though it is not really a beach. For example, you can have a lot in the middle of a town with no water on it and assign it as a beach lot. When building your own community lots, all you need do is assign a lot type and the game will recognise that lot.
How are community lots assigned in Sims 3?