restart eclipse
再對該project按右鍵選Properties
完成如圖
該專案開頭圖示的左上角就有一個地球就表示是Web project
log4j.logger.org.hibernate.type = trace, console
可以看到?的內容
Hibernate: insert into USERS (VERSION, USERNAME, PASSWORD, DESCRIPTION, ENABLED, N_ID, USER_ID) values (?, ?, ?, ?, ?, ?, ?)
xxx>2009-08-17 10:32:50,949 DEBUG[TimestampType:133]binding '2009-08-17 10:32:50' to parameter: 1
xxx>2009-08-17 10:32:50,949 DEBUG[StringType:133]binding 'asdf' to parameter: 2
xxx>2009-08-17 10:32:50,949 DEBUG[StringType:133]binding 'asdf' to parameter: 3
xxx>2009-08-17 10:32:50,949 DEBUG[StringType:133]binding 'asdf' to parameter: 4
xxx>2009-08-17 10:32:50,949 DEBUG[BooleanType:133]binding 'true' to parameter: 5
>2009-08-17 10:32:50,949 DEBUG[StringType:133]binding '40288be52031e8d4012031f78d07000e' to parameter: 6
xxx>2009-08-17 10:32:50,949 DEBUG[StringType:133]binding '40288b6c232632be012326332be60001' to parameter: 7
在oracle中使用Number(5,2)的data type:
mapping須設
< property name="multiple" not-null="true" type="integer" >
< column name="MULTIPLE" sql-type="number(5,2)" >< /column >
< /property >
重新執行sql developer
大功告成!
oracle XE 另記 :
安裝完 oracle-xe-univ-10.2.0.1-1.0.i386.rpm 後別忘了
/etc/init.d/oracle-xe configure
跟著指令設定,直到出現
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:8080/apex"
然後用system / yourpasword 登入上述URL
寫了半個世紀程式、 曾出版《Clean Code》教全世界工程師把程式碼寫乾淨的 Robert C. Martin(Uncle Bob), 最近公開表示他已經有超過 95% 的時間不再逐行閱讀 AI 寫的程式碼。 一位一生都在強調「程式碼是寫給人讀的」宗師級人物,何以敢做出...