Using string types enables you to reuse the relationship in any mapping between business objects that need a state name to state code mapping between string-typed properties.
通过字符串类型,如果业务对象之间需要字符串类型的属性之间的州名称到州代码的映射,则可以在这些业务对象之间的任意映射中重用此关系。
I was pleasantly surprised how I could achieve this type of dynamic mapping with so little code.
我惊喜地发现,我可以用很少的代码实现这种类型的动态映射。
You can perform several functions, such as add custom code or invoke relationship mapping.
您可以执行多个函数,如添加自定义代码或调用关系映射。
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.
这种方法的优点是,它不需要附加的应用程序代码来执行标识映射。
Handle identity mapping from the application code is the preferred method.
由应用程序代码来处理标识映射,这是首选的方法。
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.
它们是重量级的、适配器驱动的解决方案,通常需要数月才能建成具有一定价值的规模,而且协议映射和数据格式往往还需要许多编码。
In Listing 7, I've defined this simple template, and in Listing 8, I'll show you the corresponding mapping code.
在清单7中,我们定义了这样一个简单的模板,在清单8中,我将向您展示对应的映射代码。
The mapping code is in Listing 5.
清单5是这种映射的代码。
Fourth, the process implementation was done with less than 20 lines of code which were written for a special mapping capability.
第四,在整个流程的实现中,我们只写了不到20行代码,用以实现一项较特殊的映射功能。
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中的“控制台”窗口,可以确认映射代码工作正常,因为对职员姓氏的修改已经正确地持久化到了数据库中。
With the template defined, the next step is to write the run-time mapping code.
定义好模板之后,下一个步骤是编写运行时的映射代码。
The next step is to write the run-time mapping 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代码生成器只为全局元素生成映射条目,而不为局部元素生成。
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数据模型,并生成映射/转换代码。
Working with templates can be broken down to two primary tasks: First, you create a template; second, you provide the mapping code.
对模板的使用可以分解为两个主要的任务:首先,创建模板;其次,提供映射代码。
There is one SCA POJO component, which is the bridging/mapping code discussed earlier.
还有一个SCAPOJO组件,它是前面讨论的桥接/映射代码。
Broadly, these frameworks take two different approaches: code generation and object-to-XML mapping.
笼统来说,这些框架采用了两种不同的方式:代码生成和对象到xml映射。
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 code in Listing 15 implements the mapping between the XML document and the class variables.
清单15中的代码实现XML文档和类变量之间的映射。
Listing 3 shows the mapping code.
清单3是映射代码。
Unfortunately, because of this, we could not reuse the code we were using from EJB2 CMP ORM, so we needed to manually code the object-relational mapping for the JDBC queries.
不幸的是,我们因此不能重用在 EJB2CMPORM 中使用的代码,所以我们需要手动地编写用于JDBC查询的对象关系映射。
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中的条目是什么。
A new File Resource design element called ObfuscationList.txt will contain the mapping of legible code names to the short cryptic names.
称为ObfuscationList.txt的新FileResource设计元素将包含清楚易读的代码名称到简短含义模糊的名称的映射。
Google Maps does an elegant job of mixing rich-client side code with an intelligent mapping engine on the server side.
GoogleMaps执行了很好的任务——将富客户端的代码与服务器端的智能映射引擎结合了起来。
In Listing 10, you can see the mapping code that maps an instance of the above-defined Person class.
在清单10中,您可以看到对上面定义的Person类的实例进行映射的代码。
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内映射代码如何正确地填充姓名和办公室字段。
应用推荐