Quick way of quick creating of Pojo classes?
Greetings, Gentlemen!
Whats is the best way of creating POJO Java classes in Idea?
What I want is to quickly create a class which holds several private variables which are
1) set via constructor
2) set via setters
Can Idea simplify the procedure?
Idea 11.
Please sign in to leave a comment.
After you create the field (i.e. property) definitions, use the code generator (Alt+Insert or ⌃⏎) to generate setters/getters and constructors. As a tip, when creating a constructor, the order you select the properties (using the shift key) in the dialog is the order they will appear in the constructor.