Listing 3 shows the mapping code.
清单3是映射代码。
Writing the domain object to DTO mapping code is tedious.
域对象写入DTO映射代码是非常枯燥。
With the template defined, the next step is to write the run-time mapping code.
定义好模板之后,下一个步骤是编写运行时的映射代码。
There is one SCA POJO component, which is the bridging/mapping code discussed earlier.
还有一个SCAPOJO组件,它是前面讨论的桥接/映射代码。
This results in mapping code that has a common appearance for both directions of mapping.
如此导致双向上映射具有共同外貌的映射代码。
In Listing 10, you can see the mapping code that maps an instance of the above-defined Person class.
在清单10中,您可以看到对上面定义的Person类的实例进行映射的代码。
In Listing 7, I've defined this simple template, and in Listing 8, I'll show you the corresponding mapping code.
在清单7中,我们定义了这样一个简单的模板,在清单8中,我将向您展示对应的映射代码。
Working with templates can be broken down to two primary tasks: First, you create a template; second, you provide the mapping code.
对模板的使用可以分解为两个主要的任务:首先,创建模板;其次,提供映射代码。
Before you begin writing the mapping code for items in your repository, you need a solid understanding of what an item is to II CE.
在编写存储库的映射代码之前,需要充分理解II CE中的条目是什么。
It's not changing, for example, the domain functionality in the MS-RPC code, it's not changing our user - and group-mapping code.
例如,它没有改变MS-RPC代码中的域功能,也没有改变我们的用户及组映射代码。
Object to object mapping. Like, the tool can be used to map entity objects to domain objects instead of writing manual mapping code.
自动生成对象到对象的映射代码,比如,能够生成从实体对象映射到域对象,而不是手动编写映射代码。
Note the "Console" window output in Figure 13, and how the fields for name and office have been correctly populated by the in-the-bean mapping code.
注意图13中的“控制台”窗口输出,以及bean内映射代码如何正确地填充姓名和办公室字段。
That is possible by leveraging the object-relational mapping code in Rails's ActiveRecord class that is the base class for all models (including your patient class.
通过利用RailsActiveRecord类的对象-关系映射代码,这是可以实现的,该类是所有模型的基类(包括patient 类)。
The II ce connector SDK will take care of the EJB for you, allowing you to concentrate on the POJOs implementing the mapping code that is specific to your repository.
IICE连接器s DK将会替您考虑EJB的问题,从而使您把精力集中在POJO实现映射代码的问题上,映射代码是存储库所特有的。
The example Employee bean for this approach contains the fields id and doc to store the columns of the database table, plus some additional fields that will be populated by mapping code.
这种方式的示例Employeebean包含id和doc字段,它们存储数据库表的列;还有几个将由映射代码填充的字段。
By looking at the "Console" window in Figure 14, you can confirm that the mapping code is working properly, as the change to the employee last name is correctly persisted to the database.
通过查看图14中的“控制台”窗口,可以确认映射代码工作正常,因为对职员姓氏的修改已经正确地持久化到了数据库中。
I was pleasantly surprised how I could achieve this type of dynamic mapping with so little code.
我惊喜地发现,我可以用很少的代码实现这种类型的动态映射。
Either way, you have to write or generate code to do the object-relational mapping.
无论采取哪种方式,都必须编写或生成代码来进行对象关系映射。
The advantage of this approach is that it does not require additional application code to perform the identity mapping.
这种方法的优点是,它不需要附加的应用程序代码来执行标识映射。
Modifying the mapping definition, rather than requiring changes in application code, often handles minor changes in the XML document structure.
修改映射定义(而不需要改变应用程序代码)通常处理XML文档结构中微小的变化。
This code will perform the run-time mapping and write the corresponding formatted template to the original file, as shown in Listing 17.
这段代码将执行运行时映射,并将对应的格式化后的模板写入原始的文件中,如清单17所示。
This article will discuss the usage of a mapping model to direct code generation into files other than default ones.
本篇文章将讨论映射模型的使用方法,控制代码自动产生到除默认文件之外的其它文件。
These are heavyweight, adapter-driven solutions that take months to years to roll out in any meaningful fashion, and often require a lot of code for mapping protocols and data formats along the way.
它们是重量级的、适配器驱动的解决方案,通常需要数月才能建成具有一定价值的规模,而且协议映射和数据格式往往还需要许多编码。
Using a mapping model, you can rename modeled elements in the generated code.
使用映射模型,您能够在生成的代码中重命名模型的元素。
The mapping specifications themselves are not persisted, which means any changes to the mapping would require to change the ETL code or to repeat the entire mapping process.
映射规范本身不是持久化了的,这意味着对映射的任何更改都需要相应更改ETL代码或重复整个的映射过程。
However, by default, the EMF code generator only generates mapping entries for global elements, not for local elements.
但是,默认的情况是,EMF代码生成器只为全局元素生成映射条目,而不为局部元素生成。
The XML mapping file contains, and elements with code inside of them that looks like regular ANSI SQL.
这个xml映射文件包含、和元素,三个元素内包含的代码看上去像是常规的ANSISQL。
In the first scenario (the second is scenario 6), identity mapping is performed from the application code, without using and configuring custom login modules.
在第一个场景(第二个是场景6)中,由应用程序代码执行标识映射,而不使用和配置自定义登录模块。
Top-down -- Start from an existing XML description of the interface (XML schema, DTD, WSDL), derive the XML data model, and generate the mapping/conversion code.
自顶向下——从现有的接口XML描述(XML模式、DTD、WSDL)开始,派生 XML数据模型,并生成映射/转换代码。
The mapping of data into bit patterns in various code pages helps interchange global data without data loss and character corruption.
在不同编码页面中数据向二进制模式的映射帮助无损的交换国际数据。
应用推荐