Eclipse provides facility of automatically generates comment in java files.

You can add your own comment also. Suppose if you want to add your comment on setter getter method following steps are required.

First go to the menu entry project>property, properties window will open.

Now go to Java Code Style > Code Templates.

Now go to comments and Enable project specific setting.

Edit your own comment and u can also insert variable like this.

Your own comment will be shown when you generate setter and getters method.