清单6给出了这类注释的一个版本。
创建和注册带注释的XML模式。
以下是对更有用的注释的简单概述。
添加注释的动机通常与代码重构一致。
The motivation for writing comments is often same as for refactoring your code.
使用带注释的命名查询所带来的问题。
元数据是用称为注释的程序元素表示的。
Metadata is expressed using program elements called annotations.
使用查询注释的案例研究。
支持注释的运行时反射。
它指明注释的方法将覆盖超类中的方法。
It indicates that the annotated method is overriding a method in a superclass.
使用这些注释的好处包括
元数据功能定义了向程序元素提供注释的机制。
A metadata facility defines a mechanism to supply annotations to program elements.
良好习惯:带注释的函数和类。
元数据功能也可以指定一种消费注释的一般方式。
A metadata facility may also specify a general way to consume annotations.
清单7给出了一个为可翻译变量添加注释的例子。
Listing 7 shows an example of adding comments for translatable variables.
图19显示了包含椭圆与注释的连接器功能。
Figure 19 shows the connector functionality with an oval and a note.
现在,我将展示以横切方式提供注释的基本语法。
For now, I'll show you the basic syntax to supply annotation in a crosscutting manner.
result包含所有审阅人员的注释的数组。
Result. The array that contains the comments of all reviewers.
图2显示了用于查看草案模型和添加注释的小部件。
Figure 2 shows the widget for viewing a draft model and adding comments.
JPA实体包包含带注释的 JPA 实体对象。
The JPA entities package contains the annotated JPA entity objects.
清单7展示了ToString注释的一些测试类。
Listing 7 shows some test classes for the ToString annotation.
使用带注释的XML模式映射分解到现有的关系表。
Decomposed to existing relational tables using annotated XML schema mapping.
有关这些注释的更多详细信息,请参阅DB 2文档。
For more details on each of these annotations, refer to the DB2 documentation.
还可以使用编程方式或基于注释的Bean声明。
You can also use programmatic or annotation- based bean declaration.
本文中选择的查询和数据库类型只是注释的一般示例。
The types of queries and databases chosen to search in this article are just general examples of useful annotation.
清单6给出了一些为DNT和隐藏变量添加注释的好例子。
Listing 6 shows some good examples of adding comments for the DNT and hidden variables.
他使用该接口向小组成员解释带注释的方法风格的基础。
He USES the interface to explain the fundamentals of the annotated method style to the team.
注释的id 属性显示出匹配字典条目的内部 ID。
The id of the annotations shows the internal ID of the matched dictionary entry.
下面是JSR- 181提供的一些注释的简单描述。
The following is a brief description of some of the annotations provided by JSR-181.
如果您曾经遇到过带有此类注释的代码,这种情况并不少见。
You're not alone if you've ever come across a chunk of code with a comment like this one.
但是有人能够保证在代码维护之后会保持注释的同步更新吗?
But who's to say that whoever maintains that code will keep the comments up to date?
应用推荐