1. 程式人生 > >Hibernate XX is not Mapped問題筆記

Hibernate XX is not Mapped問題筆記

今天使用註解遇到hibernate中XX is not Mapped問題,困惑了半天,終於找到了答案,

原因是由於我在使用@Entity(name="room")對映的時候,將表名改為了小寫開頭的room,導致我查詢的時候無法將結果封裝為物件以至於報這個錯誤,今天

總結筆記,以後避免再犯類似的錯誤。