added BaseEntity to all entity classes