A.<set> B.<one-to-many> C.<many-to-one> D.<property>
A.對于每個數(shù)據(jù)庫事務,應該創(chuàng)建一個SessionFactory對象 B.一個SessionFactory對象對應一個數(shù)據(jù)庫存儲源。 C.SessionFactory是重量級的對象,不應該隨意創(chuàng)建。如果系統(tǒng)中只有一個數(shù)據(jù)庫存儲源,只需要創(chuàng)建一個。 D.SessionFactory的load()方法用于加載持久化對象
以下程序代碼對Customer的name屬性修改了兩次: 執(zhí)行以上程序,Hibernate需要向數(shù)據(jù)庫提交幾條update語句?()
A.0 B.1 C.2 D.3