基于此目的,Abdera实现提供了两种注释对象(JDK 1.5或更高版本)。
For this purpose, the Abdera implementation provides two special annotation objects (JDK 1.5 or higher).
SimpleJPA是一个这类的示例:它是一个持久性库,允许jpa注释对象几乎与Amazon的SimpleDB无缝集成。
SimpleJPA is one example in this category: a persistence library that lets JPA annotated objects work almost seamlessly with Amazon's SimpleDB.
不过,它还具有文本文档的优势,因为模型中的每个对象都可以包括注释和文档之类的属性。
However, it also has the advantages of a text document, since each object in the model can include attributes like comments and documentation.
描述符也可以提供与注释相同的有关实体的元数据信息,如主键字段,以及对象之间的任何映射。
The descriptor can also provide the same metadata information about the entities as annotations, such as primary key field, and any mappings between objects.
在每一个包中,我们最初的类图都来自于我们的用例、业务对象模型、注释和访谈。
Within each package, our initial class diagrams were derived from our use cases, business object model, notes, and interviews.
在这种情况下,可以查询表示已通知连接点的对象来获得相关的注释。
In these cases you can query the object representing the advised join point for its associated annotations.
尽管可以使用XML覆盖注释,但是如果对象有几个映射,那么我可能不会喜欢任何一个。
Although I can use XML to override annotations, if an object has a few mappings then I may not want to favor any.
您可以使用“点注释”来查询嵌入的对象。
目前,只可以更改现有视图对象的注释。
Currently, only the comment of an existing view object can be altered.
添加关于对象的注释,表明创建它的原因。
每个类定义上的注释(用粗体显示)和大部分字段定义提供了配置信息,供JAXB用于控制对象与XML的转换。
The annotations (shown in bold) on each class definition and most of the field definitions supply configuration information that JAXB USES to control the conversion of objects to and from XML.
然后可以像其他对象一样,用注释实例修改程序的行为。
The annotation instances can then be used much like other objects to modify the behavior of the program.
如果应用程序使用DAO(数据访问对象)来产生动态sql和存储过程,那么传递给DAO的值对象就可以使用注释声明为一种云资源。
If the application USES a DAO (data access object) with dynamic SQLs and stored procedures, the value object that is passed to DAO can be declared as a cloud resource using annotations.
与类指定一个创建对象的模版很相像,注释类型指定创建注释实例的模版。
Annotation types specify a template to create annotation instances, much the same way classes specify a template to create objects.
JPA实体包包含带注释的 JPA 实体对象。
The JPA entities package contains the annotated JPA entity objects.
如果没有任何注释与给定订单对象相关,那么您可能希望在持久化实体后将该列设为null。
If no comment is associated with a given purchase order object, you might expect this column to be null after persisting the entity.
最佳的机制可能取决于开发环境,可以使用(比如)预处理器、注释或helper对象实现。
The best mechanism may depend on your environment and could be implemented using, for example, preprocessors, annotations, or helper objects.
与servlet模型相比,JAX - RS注释让您能集中于您的资源和数据对象。
In contrast to the servlet model, JAX-RS annotations let you focus on your resources and data objects.
注释通过将注释应用到xpath语句所选择的文档对象模型(Document Object Model,DOM)元素上在一个已解析的HTML文档的DOM版本上工作。
Annotation works on a document Object Model (DOM) version of a parsed HTML document by applying annotations to DOM elements that are selected by XPath statements. For example, the statement.
如果您处理的对象使用一个方法而不是close来释放资源,那么就需要用一个带附加说明的注释调用该方法。
If you're working with objects that use a method other than close to relinquish resources, you invoke that with a parenthetical alongside the annotation.
Employee对象的列表被标上了OneToMany注释,以让JPA运行时过程知道,该区域是由一个关系填充的。
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.
支持的所有对象上的注释。
第二,一个人不得不创建大量的专有扩展元素来注释atom:entry元素,以便处理业务对象中所有特定的字段。
Secondly, one would have to create a large number of proprietary extension elements to anotate the atom:entry element to hold all the [...] specific fields for the [business object].
此类提供了一组类或一组单例(singleton)对象实例,在一个JAX-RS应用程序内包括所有的根级别的资源和提供程序(由 @Provider注释的类)。
This class provides a set of classes, or a set of singleton object instances, that include all of the root-level resources and providers (classes annotated with @Provider) in a JAX-RS application.
在清单4中,我用类似的方法注释了Runner对象的getrace函数。
In Listing 4, I'll similarly annotate the getRace method in the Runner object.
EntityManager对象的 @PersistenceContext注释确保Blueprint在运行时将这个对象(准备使用)注入到捆绑包。
The @PersistenceContext annotation of the EntityManager object ensures that the Blueprint container injects this object, ready for use, into the bundle at run time.
可以提供其他注释来描述与其他对象和其他行为之间的关系,但是以上注释足以实现我们的目的。
Other annotations can be provided to describe relationships to other objects and other behaviours, but this will be sufficient for our purposes.
修复这种情况下的对象游离的方法是,当对象从堆栈弹出之后,就消除它的引用,如清单3中注释掉的行所示。
The cure for object loitering in this case is to null out the reference after popping it from the stack, as shown in the commented-out line of code in Listing 3.
一个GMF注释提供了描述图的基本对象。
A GMF notation model provides the basic objects to describe diagrams.
一个GMF注释提供了描述图的基本对象。
A GMF notation model provides the basic objects to describe diagrams.
应用推荐