A.“uuid.hex”由 Hibernate 基于128 位 UUID 算法 生成16 進(jìn)制數(shù)值(編碼后以長度32 的字符串表示)作為主鍵 B.“uuid.hex”生成的主鍵只能適用于SQL Server數(shù)據(jù)庫 C.“Native”根據(jù)具體連接的數(shù)據(jù)庫從identity, sequence或者h(yuǎn)ilo選擇一種來生成主鍵 D.“increment”生成long, short或者int類型的主鍵
Hibernate 中的查詢語句如下 from User u where u.name=:username and u.yearold=:yearold 正確的參數(shù)注入方式有()
A.query.setParameter(“username”,”bluedavy”); B.query.setParameter(“yearold”,25); C.query.setParameter(0,”bluedavy”); D.query.setParameter(1,25);
A.是一種符合對象語言的查詢語句 B.能夠避免使用 sql 的情況下依賴數(shù)據(jù)庫特征的情況出現(xiàn) C.能夠根據(jù) OO 的習(xí)慣去進(jìn)行實體的查詢 D.理解SQL的人很難理解HQL