We also added a class mapping database.
我们还增加了一个类映射数据库。
First, we create an NHibernate Configuration object. Then we pass it the class mappings from the mapping files.
首先我们创建一个NHibernate的Configuration对象,通过它来实现从映射文件中映射类。
Super class mapping support; attribute to column mapping defined in a super class should be available for its child class.
超类映射支持;超类中定义的属性到列的映射应该可用于它的子类。
A fragment of the XML configuration file is listed below, showing how one of the SQL strings and the user-defined bean class mapping are overridden.
下面列出了XML配置文件的一个片段,它展示了如何覆盖一个SQL字符串和用户定义bean类映射。
This program is used when installing or uninstalling an RPM to update the global class mapping database, and should be run in your RPM's % post and % postun sections.
当安装或者卸载一个RPM改变了全局类映射数据库时,我们将使用该程序,并且该程序应该运行在RPM的%post和% postun部分。
The z/OS workload management service class, under which optimized local adapter EJB requests are dispatched, can be configured using the workload management transaction class mapping XML file.
可以使用工作负荷管理事务类映射XML文件配置z/OS 工作负荷管理服务类,在该类下调度优化的本地适配器EJB请求。
You can also use this page to specify the mapping of association class relationships during the import.
您也可以使用该页面,来指定在导入期间相关类关系之间的映射。
Note that there appears to be something missing: We specified the target class, but not its mapping table!
这里我们好像忘记了一点东西,我们指定了目标类,但是没有指定目标类的映射表。
Each step presents a new mapping rule and explains the related concepts; where meaningful, a class diagram illustrates the rule.
每一步表达了一个新的映射规则,并解释了相关的概念;在需要的地方有类图描述规则。
The auto mapping feature USES a set of conventions to automatically map all entities, not requesting a mapping class per entity.
自动映射特性使用一套规则来自动映射所有实体,并非每个实体都需要映射类。
There are three fundamental solutions for mapping inheritance into a relational database, and to understand them I will discuss the trade-offs of mapping the class diagram presented in Figure 1.
将继承映射到关系数据库中有三种基本解决办法,为更好地理解它们,我将讨论在图1中显示的映射类图表的优缺点。
The object to be marshalled must be an instance of a class that's defined with a global mapping in the binding.
要数据编组的对象必须是类的一个实例,该类是用绑定中的全局映射定义的。
Figure 6 presents the updated persistence model for mapping the entire class hierarchy into one data entity.
图6显示了一个更新过的持久性模型,用于将整个类层次结构映射成一个数据实体。
Figure 8 presents the solution for the third mapping strategy — mapping a single class to a single data entity.
图8显示了第三种映射策略的解决方案——将单个类映射成单个数据实体。
Once we have identified the class being identified and its mapping table, we need to specify the identity property of the class and its corresponding identity column in the mapping table.
我们已经标识了类和类对应的映射表,接下来我们需要标识类的标识属性和映射表中的标识列。
The code in Listing 15 implements the mapping between the XML document and the class variables.
清单15中的代码实现XML文档和类变量之间的映射。
All I had to do was write a tiny mapping class, and I could make the example work with any tables and classes. I had a general purpose structure.
我所要做的一切,就是写一个很小的映射类,就能够让这个例子对任意的表和类都适用。
This annotation performs the actual mapping between the class name and the table in the underlying database.
该标注执行类名与底层数据库表之间的实际映射。
XML mapping files describe how a class maps to a particular table in the database, along with any relationships that the class has with other classes.
XML映射文件描述了如何将类映射到数据库中具体的表,并描述了类与其他类的关系。
If you map a UML class in the mapping model to a different name, you change the name of the file in which it will be generated but not the generated class in the file.
在映射模型中,假如您想将一个UM l类映射为另外的名称,您需要改变其将要生成文件的名称,而不是类名。
Why does a JAX-WS mapping of faults create a fault class and a fault info class?
为什么错误的JAX - WS映射会创建错误类和错误信息类?
Mapping additional classes is done the same way as mapping the base class.
按照相同的方式对其他类进行映射。
You should have a single hibernate.cfg.xml file, shown in Listing 12, where you specify each mapping file used for each class.
应该会有一个如清单12所示的单一的hibernate . cfg . xml文件,您要在这里指定每一个类用的映射文件。
Although the different ways of mapping a class to the database are individually well documented in the NHibernate documentation, the different usage scenarios is not always obvious.
虽然NHibernate文档中已经详细记录了各种类与数据库进行映射的方式,但是它们的使用场景叙述得并不那么明显。
The DeploymentDescriptor class treats the qname attribute as optional in type mapping declarations.
DeploymentDescriptor类把qname属性作为类型映射声明中的可选项。
If you do not have a mapping model, then the Date class will be generated inside a folder called Package1.
如果没有映射模型,那么date类将会生成在一个名为Package1的文件夹内。
The new declarative syntax allows for the creation of a table, class, and mapping to the database in one step.
新的declarative语法允许在一步中创建表、类和数据库映射。
The tag's attributes specifies the class being mapped, and its mapping table in the database.
标签的属性指定了要映射的类,以及它的映射表。
The only other mapping in the Order class is a simple property mapping for the Date property. We will not spend time on that here, so you can close the Order mapping file.
Order类中现在只剩一一个简单类型,Date,我们不会再花费时间,现在你可以关闭Order类的映射文件。
The mapping is done using the mapped_region class declared and defined in the header mapped_region.hpp.
使用在头文件mapped_region . hpp中声明并定义的mapped_region类执行映射。
应用推荐