Use BaseEntity class.