Educative

Should I add methods as shown in class diagram, in java entity objects

Some of the objects in design linkedin page looks like entity to me. Let us take an example of a Company class. So while implementing the LinkedIn, should I add the addJobPosting method in entity class? Also, how would I use the service, repository, and controller pattern with this class diagram?