Listing 3 shows the mapping code.
清单3是映射代码。
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组件,它是前面讨论的桥接/映射代码。
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中,我将向您展示对应的映射代码。
Writing the domain object to DTO mapping code is tedious.
域对象写入DTO映射代码是非常枯燥。
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中的条目是什么。
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内映射代码如何正确地填充姓名和办公室字段。
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中的“控制台”窗口,可以确认映射代码工作正常,因为对职员姓氏的修改已经正确地持久化到了数据库中。
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中的“控制台”窗口,可以确认映射代码工作正常,因为对职员姓氏的修改已经正确地持久化到了数据库中。
应用推荐