Create automatically only getters in Eclipse On the Generate Setters and Getters screen you have Select getters button on the right - use it.