But I really don't know whether this property deptIdList is how to deal with
import lombok. Data;
Import the Java. IO. Serializable.
import java.util.List;
@ Data
Public class UserDetail implements Serializable {
private static final long serialVersionUID=1L;
private Long id;
private String username;
Private String realName;
Private String headUrl;
Private Integer gender;
Private String email;
private String mobile;
Private Long deptId;
private String password;
private Integer status;
Private Integer superAdmin;
/* *
* department data access
*/
Private ListDeptIdList;
}
In another place a call to the user. The getDeptIdList
Idea to check the way defined directly on the code above deptIdList attributes?
//department ID list
ListDeptIdList=user. GetDeptIdList ();
Want to go in my whole meng, debugging user. GetDeptIdList () method, and also can't get into,
Consult bosses this is what operation,,
I just want to know getDeptIdList () method is what is the content inside the
CodePudding user response:
Lombok is good at compile time give you compile the get method such as the set, you can see the class files generated, in some,CodePudding user response:
Public ListReturn deptIdList;
}
Is it, just like ordinary,
You go to have a look at the compiled target, the annotations can get directly at compile time, the set those methods are generated
CodePudding user response: