Instead it adds an annotation to the field which informs the visual editor that the underlying type of this collection is String.
相反,它是为字段增加了注释,向可视化编辑器说明这一集合的隐藏类型为字符串。
The List of Employee objects is marked with the OneToMany annotation to let the JPA runtime process know that this field is filled by a relationship.
Employee对象的列表被标上了OneToMany注释,以让JPA运行时过程知道,该区域是由一个关系填充的。
Finally, we see the @accessors annotation, which is a macro that creates getter/setter methods for the field that precedes it.
最后是 @accessors 注释,这是一个宏,用于为它前面的字段创建 getter/setter 方法。
应用推荐