当前位置:网站首页>@Accessors annotation function specifies that the prefix follows the hump naming
@Accessors annotation function specifies that the prefix follows the hump naming
2022-07-03 03:12:00 【Friendship years】
Accessors Translation is accessor . With this annotation you can control getter and setter The form of the method .
@Accessors(fluent = true)
Use fluent attribute ,getter and setter Method names are property names , And setter Method returns the current object
@Data
@Accessors(fluent = true)
class User {
private Integer id;
private String name;
// Generated getter and setter The method is as follows , Method brief
public Integer id(){}
public User id(Integer id){}
public String name(){}
public User name(String name){}
}
@Accessors(chain = true)
Use chain attribute ,setter Method returns the current object
@Data
@Accessors(chain = true)
class User {
private Integer id;
private String name;
// Generated setter The method is as follows , Method brief
public User setId(Integer id){}
public User setName(String name){}
}
@Accessors(prefix = “f”)
Use prefix attribute ,getter and setter Method ignores the specified prefix of the property name ( Follow the hump name )
@Data
@Accessors(prefix = "f")
class User {
private Integer fId;
private String fName;
// Generated getter and setter The method is as follows , Method brief
public Integer id(){}
public void id(Integer id){}
public String name(){}
public void name(String name){}
}
边栏推荐
- Update and return document in mongodb - update and return document in mongodb
- The process of connecting MySQL with docker
- How to use asp Net MVC identity 2 change password authentication- How To Change Password Validation in ASP. Net MVC Identity 2?
- TCP 三次握手和四次挥手机制,TCP为什么要三次握手和四次挥手,TCP 连接建立失败处理机制
- 用docker 連接mysql的過程
- 迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常
- Add automatic model generation function to hade
- What does it mean when lambda is not entered?
- MySQL practice 45 [global lock and table lock]
- idea 加载不了应用市场解决办法(亲测)
猜你喜欢
![[shutter] monitor the transparency gradient of the scrolling action control component (remove the blank of the top status bar | frame layout component | transparency component | monitor the scrolling](/img/c3/b9a614001f80345a5c1cb3c68ab27c.jpg)
[shutter] monitor the transparency gradient of the scrolling action control component (remove the blank of the top status bar | frame layout component | transparency component | monitor the scrolling

MySql实战45讲【事务隔离】

I2C subsystem (III): I2C driver

Check log4j problems using stain analysis
![[Chongqing Guangdong education] cultural and natural heritage reference materials of China University of Geosciences (Wuhan)](/img/19/815e7cba81f6eb52db5ef0db556dfd.jpg)
[Chongqing Guangdong education] cultural and natural heritage reference materials of China University of Geosciences (Wuhan)

Left connection, inner connection

Vs 2019 configure tensorrt to generate engine

On the adjacency matrix and adjacency table of graph storage

Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)

VS 2019配置tensorRT
随机推荐
Do you really understand relays?
Anhui University | small target tracking: large-scale data sets and baselines
VS 2019 配置tensorRT生成engine
Vs 2019 configure tensorrt to generate engine
L'index des paramètres d'erreur est sorti de la plage pour les requêtes floues (1 > Nombre de paramètres, qui est 0)
@Accessors注解作用指定前缀遵守驼峰命名
MySQL practice 45 lecture [transaction isolation]
程序员新人上午使用 isXxx 形式定义布尔类型,下午就被劝退?
MySql实战45讲【索引】
I2C subsystem (III): I2C driver
Agile certification (professional scrum Master) simulation exercise-2
Chart. JS multitooltip tag - chart js multiTooltip labels
How to limit the size of the dictionary- How to limit the size of a dictionary?
Add automatic model generation function to hade
45 lectures on MySQL [index]
TCP 三次握手和四次挥手机制,TCP为什么要三次握手和四次挥手,TCP 连接建立失败处理机制
[combinatorics] Application of exponential generating function (multiple set arrangement problem | different balls in different boxes | derivation of exponential generating function of odd / even sequ
Tensorflow to pytorch notes; tf. gather_ Nd (x, y) to pytorch
一文带你了解 ZigBee
敏捷认证(Professional Scrum Master)模拟练习题