网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
在Hibernate中,Customer类中有一个Set类型的orders属性,用于存放Order订单对象,在Customer.hbm.xml文件中,可以用()元素映射orders属性。
A
<set>
B
<one-to-many>
C
<many-to-one>
D
<property>
参考答案
参考解析
解析:
暂无解析
更多 “单选题在Hibernate中,Customer类中有一个Set类型的orders属性,用于存放Order订单对象,在Customer.hbm.xml文件中,可以用()元素映射orders属性。A <set>B <one-to-many>C <many-to-one>D <property>” 相关考题
考题
(1)创建一个新的项目“customer_management”。(2)在新建立的项目“customer_management”中创建数据库“order_management”。(3)在数据库“order_management”中建立表“order_list”,表名称分别为:“客户型”、“订单号”、“订购日期”和“总金额”;类型分别为:“字符型(6)”、“字符型(6)”、“日期型”和“浮动型”。(4)为“order list”表创建一个主索引,索引名和索引表达式均是“订单号”。
考题
The ORDERS table has these columns:ORDER_ID NUMBER(4) NOT NULLCUSTOMER_ID NUMBER(12) NOT NULLORDER_TOTAL NUMBER(10,2)The ORDERS table tracks the Order number, the order total, and the customer to whom the Order belongs.Which two statements retrieve orders with an inclusive total that ranges between 100.00 and 2000.00 dollars? ()A. SELECT customer_id, order_id, order_total FROM orders RANGE ON order _ total (100 AND 2000) INCLUSIVE;B. SELECT customer_id, order_id, order_total FROM orders HAVING order _ total BETWEEN 100 and 2000;C. SELECT customer_id, order_id, order_total FROM orders WHERE order _ total BETWEEN 100 and 2000;D. SELECT customer_id, order_id, order_total FROM orders WHERE order_total= 100 and = 2000;E. SELECT customer_id, order_id, order_total FROM orders WHERE order_total= 100 and order_total = 2000;
考题
Examine the data from the ORDERS and CUSTOMERS table.Which SQL statement retrieves the order ID, customer ID, and order total for the orders that are placed on the same day that Martin places his orders?()A.B.C.D.
考题
在Visual FoxPro中,下面关于属性、事件、方法叙述错误的是( )。 A.属性用于描述对象的状态
在Visual FoxPro中,下面关于属性、事件、方法叙述错误的是( )。A.属性用于描述对象的状态B.方法用于表示对象的行为C.事件代码也可以像方法一样被显示调用D.基于同一个类产生的两个对象的属性不能分别设置自己的属性值
考题
阅读下列说明、图以及Java程序。[说明]某订单管理系统的部分UML类图如下图所示。上图中,Product表示产品,ProductList表示所销售产品的列表,Order表示产品订单,Orderltem表示产品订单中的一个条目,OrderList表示订单列表,SalesSystem提供订单管理系统的操作接口。各个类的部分属性和方法说明如下表所示。可以使用类java.util.ArrayList<E>米实现对象的聚集关系,如上图中OrderList与 Order之间的聚集关系。for-each循环提供了一种遍历对象集合的简单方法。在for-each循环中,可以指定需要遍历的对象集合以及用来接收集合中每个元素的变量,其语法如下:for(用来接收集合中元素的变量:需要遍历的对象集合)如果要使用for-each循环来遍历对象集合,那么包含该对象集合的类必须实现接口 java.util.Iterable<T>。Java程序7-1和Java程序7-2分别给出了类OrderList和方法statistic的Java代码[Java程序7-1]import java.util.*;public class OrderList (1) {private ArrayList<Order> orders;public OrderList0 {this.orders = new ArrayList<Order>();}public void addOrder(Order orde0this.orders.add(order);}public Iterator<Order> iterator() {return (2);}public iht getNumberOfOrders0 {return this.orders.size();}}[Java程序7-21]import java.u61.*;public class SalesSystem {private ProductList catalog;private OrderList sales;private static PrintWriter stdOut = new PrintWriter(System.out, true);public void statistic() {for (Product product: (3)) {iht number = 0;for (Order order: (4)) {for ((5): order) {if (produet.equals(item.getProduct()))number += item. getQuantity();}}stdOut.println(product .getCode() +" "+ product.getDescription() +" "+ number +" "+ number * product.getPrice());}}//其余的方法末列出}
考题
在Hibernate映射文件中,关于延迟加载配置说法错误的是()A、<class>标签中lazy属性可选值:true、falseB、<set>标签中lazy属性可选值:true、proxy和no-proxyC、<set>标签中lazy属性可选值:true、extra和falseD、<many-to-one>标签中lazy属性可选值:proxy、true和false
考题
下列选项关于Configuration的说法不正确的是()。A、Configuration类的构造方法用于将默认路径下的hibernate.cfg.xml(或hibernate.properties)配置文件中的配置信息读入到内存中B、Configuration对象用于配置并启动HibernateC、获得Configuration的方法:Configuration config = new Configuration();D、Hibernate应用通过Configuration实例指定对象-关系映射文件的位置或者动态配置Hibernate的属性
考题
关于Hibernate,下列说法错误的是()A、Hibernate是一个对象-关系映射工具B、在MVC模式中,Hibernate属于控制层C、Hibernate在JDBC的方式上进行封装,以简化JDBC方式繁琐的编码工作D、在Hibernate中,可以通过xml格式的配置文件保存对象-关系的映射信息
考题
在Hibernate中,元素有一个cascade属性,如果希望Hibernate级联保存集合中的对象,则cascade属性应该取什么值()。A、noneB、saveC、save-updateD、delete
考题
在Hibernate映射文件中,关于inverse属性说法正确的是()。A、inverse属性有两个值:true、falseB、<many-to-one>标签有inverse属性C、<set>标签有inverse属性D、inverse属性用于指定维护关联关系的那一方
考题
在Hibernate中,Customer类中有一个Set类型的orders属性,用于存放Order订单对象,在Customer.hbm.xml文件中,可以用()元素映射orders属性。A、<set>B、<one-to-many>C、<many-to-one>D、<property>
考题
延迟检索返回代理类的实例不具备的特征有()。A、在Hibernate运行时动态生成B、当Hibernate创建代理类实例时,仅初始化OID属性,其他属性均为null,占用内存空间较少C、当应用程序第一次访问代理类实例时, Hibernate将初始化代理类的实例,在初始化的过程中执行select语句并从数据库中加载对象的所有数据。D、当访问getId访法时,Hibernate会初始化代理类的实例,在初始化的过程中执行select语句,并从数据为中加载对象的所有数据。
考题
Customer类中有一个Set类型的orders属性,用来存放Order订单对象,在Customer.hbm.xml文件中,用哪个元素映射orders属性()A、<set>B、<one-to-many>C、<many-to-one>D、<property>
考题
The details of the order ID, order date, order total, and customer ID are obtained from the ORDERS table. If the order value is more than 30000, the details have to be added to the LARGEjDRDERS table. The order ID, order date, and order total should be added to the ORDERJHISTORY table, and order ID and customer ID should be added to the CUSTJHISTORY table. Which multitable INSERT statement would you use? ()A、 Pivoting INSERTB、 Unconditional INSERTC、 Conditional ALL INSERTD、 Conditional FIRST INSERT
考题
单选题延迟检索返回代理类的实例不具备的特征有()。A
在Hibernate运行时动态生成B
当Hibernate创建代理类实例时,仅初始化OID属性,其他属性均为null,占用内存空间较少C
当应用程序第一次访问代理类实例时, Hibernate将初始化代理类的实例,在初始化的过程中执行select语句并从数据库中加载对象的所有数据。D
当访问getId访法时,Hibernate会初始化代理类的实例,在初始化的过程中执行select语句,并从数据为中加载对象的所有数据。
考题
多选题The ORDERS table has these columns: ORDER_ID NUMBER(4) NOT NULL CUSTOMER_ID NUMBER(12) NOT NULL ORDER_TOTAL NUMBER(10,2) The ORDERS table tracks the Order number, the order total, and the customer to whom the Order belongs. Which two statements retrieve orders with an inclusive total that ranges between 100.00 and 2000.00 dollars? ()ASELECT customer_id, order_id, order_total FROM orders RANGE ON order _ total (100 AND 2000) INCLUSIVE;BSELECT customer_id, order_id, order_total FROM orders HAVING order _ total BETWEEN 100 and 2000;CSELECT customer_id, order_id, order_total FROM orders WHERE order _ total BETWEEN 100 and 2000;DSELECT customer_id, order_id, order_total FROM orders WHERE order_total= 100 and = 2000;ESELECT customer_id, order_id, order_total FROM orders WHERE order_total= 100 and order_total = 2000;
考题
单选题<set>元素有一个cascade属性,如果希望Hibernate级联保存集合中的对象,casecade属性应该取()值A
noneB
saveC
deleteD
save-update
考题
单选题Which statement accomplish this?()A
CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE = SYSDATE);B
CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE DEFAULT SYSDATE);C
CREATE OR REPLACE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE DEFAULT SYSDATE);D
CREATE OR REPLACE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE = SYSDATE);E
CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE = SYSDATE);F
CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE DEFAULT SYSDATE);
考题
单选题Customer类中有一个Set类型的orders属性,用来存放Order订单对象,在Customer.hbm.xml文件中,用哪个元素映射orders属性()A
<set>B
<one-to-many>C
<many-to-one>D
<property>
考题
单选题<set>元素有一个cascade属性,如果希望Hibernate级联保存集合中的对象,casecade属性应该取什么值?()A
noneB
saveC
deleteD
save-update
考题
单选题你是一个wide world importers公司的数据库开发人员,你创建了用来存储订单的数据库。订单将被输入客户/服务器应用程序中。每次有一个新订单被输入,并被赋予一个唯一的编号,按升序排列。每天平均有10000个订单被输入。你创建一个名为Orders的新表并在其中添加一个Order Number字段。接下来你应该做什么?()A
为该字段设置全局唯一标识符的数据类型。B
为该字段设置int数据类型,并为该字段设置一致性的属性。C
为该字段设置int数据类型。在表中创建一个用户自定义函数用于查看订单编号的最大值。D
为该字段设置int数据类型。创建一个名为Next Key的表,并在其中添加Next Order字段。将该字段的数据类型设置为int。在Next Key表中创建一个存储过程用于检索更新value held。
考题
单选题You need to create a table named ORDERS that contains four columns: 1.an ORDER_ID column of number data type 2.a CUSTOMER_ID column of number data type 3.an ORDER_STATUS column that contains a character data type 4.a DATE_ORDERED column to contain the date the order was placed When a row is inserted into the table, if no value is provided for the status of the order, the value PENDING should be used instead. Which statement accomplishes this?()A
CREATE TABLE orders ( order_id NUMBER(10), customer_id NUMBER(8), order_status NUMBER(10) DEFAULT 'PENDING', date_ordered DATE );B
CREATE TABLE orders ( order_id NUMBER(10), customer_id NUMBER(8), order_status VARCHAR2(10) = 'PENDING', date_ordered DATE );C
CREATE OR REPLACE TABLE orders ( order_id NUMBER(10), customer_id NUMBER(8), order_status VARCHAR2(10) DEFAULT 'PENDING', date_ordered DATE );D
CREATE OR REPLACE TABLE orders ( order_id NUMBER(10), customer_id NUMBER(8), order_status VARCHAR2(10) = 'PENDING', date_ordered DATE );E
CREATE TABLE orders ( order_id NUMBER(10), customer_id NUMBER(8), order_status VARCHAR2(10) DEFAULT 'PENDING', date_ordered DATE );F
CREATE TABLE orders ( order_id NUMBER(10), customer_id NUMBER(8), order_status VARCHAR2(10) DEFAULT 'PENDING', date_ordered VARCHAR2 );
考题
单选题你开发了一个命令登陆应用程序TestKingOrder.TestKingOrder.用一个DataSet方法来命名CurrentOrders来维护当用户修改数据时内存中的数据。在CurrentOrders中,你添加了DataTable对象命名为Orders和OrderDetails.OrderDetails用来容纳关于命令行中的数据。用户经常发现一行命令不被包含在OrderDetails里面.在这种情况下,他们删除了Orders中的order。你必须确保用户不能删除任何关于order在OrderDetails中的数据。你应该怎么做?()A
添加一个UniqueConstraint对象到CurrentOrders中B
添加一个ForeignKeyConstraint对象到CurrentOrders中C
添加一个DataRelation对象到CurrentOrders中,并且设置ChildKeyConstraint的属性为指向theappropriate行D
添加一个DataRelation对象到CurrentOrders中,并且设置ParentKeyConstraint的属性为指向适当的行
考题
单选题You need to create a table named ORDERS that contain four columns: 1. an ORDER_ID column of number data type 2. aCUSTOMER_ID column of number data type 3. an ORDER_STATUS column that contains a character data type 4. aDATE_ORDERED column to contain the date the order was placed. When a row is inserted into the table, if no value is provided when the order was placed, today's date should be used instead. Which statement accomplishes this?()A
CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE = SYSDATE);B
CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE DEFAULT SYSDATE);C
CREATE OR REPLACE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE DEFAULT SYSDATE);D
CREATE OR REPLACE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status VARCHAR2 (10), date_ordered DATE = SYSDATE);E
CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE = SYSDATE);F
CREATE TABLE orders ( order_id NUMBER (10), customer_id NUMBER (8), order_status NUMBER (10), date_ordered DATE DEFAULT SYSDATE);
考题
多选题The ORDERS table has these columns: ORDER_ID NUMBER(4) NOT NULL CUSTOMER_ID NUMBER(12) NOT NULL ORDER_TOTAL NUMBER(10,2) The ORDERS table tracks the Order number, the order total, and the customer to whom the Order belongs. Which two statements retrieve orders with an inclusive total that ranges between 100.00 and 2000.00 dollars? ()ASELECT customer_id, order_id, order_total FROM orders RANGE ON order _ total (100 AND 2000) INCLUSIVE;BSELECT customer_id, order_id, order_total FROM orders HAVING order _ total BETWEEN 100 and 2000;CSELECT customer_id, order_id, order_total FROM orders WHERE order _ total BETWEEN 100 and 2000;DSELECT customer_id, order_id, order_total FROM orders WHERE order_total= 100 and = 2000;ESELECT customer_id, order_id, order_total FROM orders WHERE order_total= 100 and order_total = 2000;
考题
单选题你正在创建一个ASP.NET应用来追踪一家公司的销售订单。此应用用的是ADO.NETDataSet对象,DataSet包含了两个DataTable对象。一个表的名字为Orders,另一个表名为OrderDetails。来自Orders表的数据显示在列表框中,你希望当用户在列表框中选择了Orders表的信息时,它相应的Orderdetails就会显示在Gri中。你想修改这些对象使你的代码能够找到你选择的order的所有orderdetails信息,你该怎么做?()A
添加DataRelation对象到DataSet对象的Relations集合B
使用DataSet.Merge方法把Orders表和OrderDetails表相互连接起来C
将一个ForeignKeyConstraint添加到OrderDetails表D
将一个keyrefconstraint添加到Dataset架构.
考题
单选题在Hibernate中,元素有一个cascade属性,如果希望Hibernate级联保存集合中的对象,则cascade属性应该取什么值()。A
noneB
saveC
save-updateD
delete
热门标签
最新试卷