如何利用HIBERNATE取得NULL值??
xnxqs 2006-08-15 06:54:33 String str = "select max(columns.SN) from COLUMNS columns here 1=1 and olumns.fATHERID=0"
Query q = session.createQuery(str);
这根据条件是查不到值的.但如何让结果变成NULL值呢??
Integer a =q.uniqueResult()
会报错.. q.list()也会报错.
如何才能不报错而取得NULL值??