Hibernate 3

Hibernateを使っていてLazyInitializationExceptionで悩む

(()) ((org.seasar.mayaa.impl.cycle.script.rhino.OffsetLineRhinoException: Wrapped org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed in script= popup.popupUrl (/html/common/Popup.mayaa#wri…

主キーに何も値を入れずに、saveOrUpdateメソッドで永続化しようとしたところ、以下のエラーが発生 javax.servlet.ServletException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save()…

HibernateでAutoIncrementの主キーをセットするときに注意すること

Hibernateでエラーになった。org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): jp.co.perfectdrugstore.entitybean.account.AccountAccessLog とすることで解決。

Hibernateを使用していると、プログラムで行ったデータベースへの変更がデータベースに反映されない

DBアクセス層のフレームワークにHibernateを使っているときに、DBViewerなどのツールで変更を行うと、Hibernateが外部のツールでデータが変更されたことに気がつかずに、不整合が起きることがある。その逆もしかり。プログラム側で、1回1回のデータベースア…