daybreaksnow's diary

私を私と呼びたい

2013-01-05から1日間の記事一覧

[Hibernate]DBスキーマからhbm,POJOの自動生成

Eclipseプラグインのhibernate-toolsを以下からインストールhttp://download.jboss.org/jbosstools/updates/stable/juno/ テーブル追加 create table BID( bid_id bigint not null, amount bigint, item_id bigint, user_id bigint, created_date date ); cr…

Hibernate触る

環境 hibernate-3.5.2http://sourceforge.jp/projects/sfnet_hibernate/downloads/hibernate3/3.5.2-Final/hibernate-distribution-3.5.2-Final-dist.zip/ postgreSQL9.1JDBCドライバ:http://jdbc.postgresql.org/download.html hibernate-3.5.2-Final-dist…

[Hibernate]JDBCConnectionExceptionへの対応

hibernateを使ってSQL Serverへ接続を行う際、毎朝実行されるジョブで以下の例外が発生することがあった。 ・org.hibernate.exception.JDBCConnectionException: could not execute query -Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Rea…