Add JavaDoc for BaseEntity