Core entities and some spring configuration