以下程序代码对Customer的name属性修改了两次:
tx = session.beginTransaction();
Customer customer=(Customer)session.load(Customer.class,
new Long(1));
customer.setName("Jack");
customer.setName("Mike");
tx.commit();
执行以上程序,Hibernate需要向数据库提交几条update语句?
tx = session.beginTransaction();
Customer customer=(Customer)session.load(Customer.class,
new Long(1));
customer.setName("Jack");
customer.setName("Mike");
tx.commit();
执行以上程序,Hibernate需要向数据库提交几条update语句?
举一反三
- 下程序代码对 Stu 的 name 属性修改了两次 tx=session.beginTransaction(); Stu stu =(Stu)session.load(Stu.class,new Long(1)); Stu.setName(“Tom”); Stu.setName(“Mike”) ; tx.commit(); 执行以上程序,Hibernate 需要向数据库提交几条 update 语句( ) 。
- B2C是英文( )的缩写。 A: Business to Customer B: Business 2 Customer C: Customer to Customer D: Customer 2 Customer
- The costs of _______ are much lower than the costs of recruiting new customers. A: customer satisfaction B: customer loyalty C: customer value D: customer retention
- C2C Customer to Customer
- 假设需要更改表名“CUSTOMER”为“CUSTOMER_CHANGE”,可以使用()语句。 A: AALTER TABLE CUSTOMER RENAME CUSTOMER_CHANGE B: BALTER TABLE CUSTOMER RENAME TO CUSTOMER_CHANGE C: CRENAME TABLE CUSTOMER TO CUSTOMER_CHANGE D: DRENAME TABLE CUSTOMER CUSTOMER_CHANGE